| Index: Source/core/html/forms/FileInputType.cpp
|
| diff --git a/Source/core/html/FileInputType.cpp b/Source/core/html/forms/FileInputType.cpp
|
| similarity index 98%
|
| rename from Source/core/html/FileInputType.cpp
|
| rename to Source/core/html/forms/FileInputType.cpp
|
| index cdf47352dab5c993773e417d73ad8d9e9e3fe439..e6018cdf38fd1defe5253315562ddc9455f39782 100644
|
| --- a/Source/core/html/FileInputType.cpp
|
| +++ b/Source/core/html/forms/FileInputType.cpp
|
| @@ -20,21 +20,21 @@
|
| */
|
|
|
| #include "config.h"
|
| -#include "core/html/FileInputType.h"
|
| +#include "core/html/forms/FileInputType.h"
|
|
|
| #include "HTMLNames.h"
|
| +#include "RuntimeEnabledFeatures.h"
|
| #include "bindings/v8/ExceptionStatePlaceholder.h"
|
| #include "bindings/v8/ScriptController.h"
|
| #include "core/dom/Event.h"
|
| #include "core/dom/shadow/ShadowRoot.h"
|
| #include "core/fileapi/File.h"
|
| #include "core/fileapi/FileList.h"
|
| -#include "core/html/FormController.h"
|
| #include "core/html/FormDataList.h"
|
| #include "core/html/HTMLInputElement.h"
|
| -#include "core/html/InputTypeNames.h"
|
| +#include "core/html/forms/FormController.h"
|
| +#include "core/html/forms/InputTypeNames.h"
|
| #include "core/page/Chrome.h"
|
| -#include "RuntimeEnabledFeatures.h"
|
| #include "core/platform/DragData.h"
|
| #include "core/platform/FileSystem.h"
|
| #include "core/platform/LocalizedStrings.h"
|
| @@ -275,9 +275,9 @@ void FileInputType::setFiles(PassRefPtr<FileList> files)
|
| RefPtr<HTMLInputElement> input = element();
|
|
|
| bool pathsChanged = false;
|
| - if (files->length() != m_fileList->length())
|
| + if (files->length() != m_fileList->length()) {
|
| pathsChanged = true;
|
| - else {
|
| + } else {
|
| for (unsigned i = 0; i < files->length(); ++i) {
|
| if (files->item(i)->path() != m_fileList->item(i)->path()) {
|
| pathsChanged = true;
|
| @@ -345,9 +345,9 @@ bool FileInputType::receiveDroppedFiles(const DragData* dragData)
|
| for (unsigned i = 0; i < paths.size(); ++i)
|
| files.append(FileChooserFileInfo(paths[i]));
|
|
|
| - if (input->fastHasAttribute(multipleAttr))
|
| + if (input->fastHasAttribute(multipleAttr)) {
|
| filesChosen(files);
|
| - else {
|
| + } else {
|
| Vector<FileChooserFileInfo> firstFileOnly;
|
| firstFileOnly.append(files[0]);
|
| filesChosen(firstFileOnly);
|
|
|