Index: Source/core/html/forms/FileInputType.cpp |
diff --git a/Source/core/html/forms/FileInputType.cpp b/Source/core/html/forms/FileInputType.cpp |
index 2fbd187fe9f51f9b7b297f30372ee804a9904432..06fb8de634d89e9b6fc7eed2bf0fcadb98e5fc46 100644 |
--- a/Source/core/html/forms/FileInputType.cpp |
+++ b/Source/core/html/forms/FileInputType.cpp |
@@ -360,6 +360,18 @@ String FileInputType::droppedFileSystemId() |
return m_droppedFileSystemId; |
} |
+void FileInputType::copyNonAttributeProperties(const HTMLInputElement& sourceElement) |
+{ |
+ RefPtrWillBeRawPtr<FileList> fileList(FileList::create()); |
+ FileList* sourceFileList = sourceElement.files(); |
+ unsigned size = sourceFileList->length(); |
+ for (unsigned i = 0; i < size; ++i) { |
+ File* file = sourceFileList->item(i); |
+ fileList->append(File::createWithRelativePath(file->path(), file->webkitRelativePath())); |
+ } |
+ setFiles(fileList.release()); |
+} |
+ |
String FileInputType::defaultToolTip() const |
{ |
FileList* fileList = m_fileList.get(); |