Index: Source/core/html/HTMLInputElement.cpp |
diff --git a/Source/core/html/HTMLInputElement.cpp b/Source/core/html/HTMLInputElement.cpp |
index 7952c58f83be743b8803e9610ed433ab59f45558..29bf33fc78ad636a09343b5827f18ffcc8d7a112 100644 |
--- a/Source/core/html/HTMLInputElement.cpp |
+++ b/Source/core/html/HTMLInputElement.cpp |
@@ -909,6 +909,8 @@ void HTMLInputElement::copyNonAttributePropertiesFromElement(const Element& sour |
setChecked(sourceElement.m_isChecked); |
m_reflectsCheckedAttribute = sourceElement.m_reflectsCheckedAttribute; |
m_isIndeterminate = sourceElement.m_isIndeterminate; |
+ if (isFileUpload()) |
tkent
2014/05/08 07:57:20
Please do not add type checks to HTMLInputElement.
gnana
2014/05/08 08:19:18
Done.
|
+ m_inputType->copyFiles(sourceElement.files()); |
HTMLTextFormControlElement::copyNonAttributePropertiesFromElement(source); |
@@ -1319,7 +1321,7 @@ KURL HTMLInputElement::src() const |
return document().completeURL(fastGetAttribute(srcAttr)); |
} |
-FileList* HTMLInputElement::files() |
+FileList* HTMLInputElement::files() const |
{ |
return m_inputType->files(); |
} |