Make the files attribute of HTMLInputElement writable
https://bugs.webkit.org/show_bug.cgi?id=87154
Reviewed by Adam Barth.
whatwg thread:
http://lists.whatwg.org/htdig.cgi/whatwg-whatwg.org/2012-May/036140.html
* bindings/objc/PublicDOMInterfaces.h:
Remove readonly on files property.
* html/FileInputType.cpp:
(FileInputType):
Add a NULL check to setFiles().
* html/FileInputType.h:
(FileInputType):
Let setFiles() overwrite the base class's method.
* html/HTMLInputElement.cpp:
(WebCore::HTMLInputElement::setFiles):
Add setFiles() implementation, delegate to input type.
* html/HTMLInputElement.h:
(HTMLInputElement):
* html/HTMLInputElement.idl:
* html/InputType.cpp:
(WebCore::InputType::setFiles):
setFiles() does nothing by default.
* html/InputType.h:
(InputType):
Add a virtual setFiles() method.
git-svn-id: svn://svn.chromium.org/blink/trunk@118993 bbb929c8-8fbe-4397-9dbb-9b2b20218538
11 files changed