| Index: third_party/WebKit/Source/core/inspector/InspectorDOMAgent.cpp
|
| diff --git a/third_party/WebKit/Source/core/inspector/InspectorDOMAgent.cpp b/third_party/WebKit/Source/core/inspector/InspectorDOMAgent.cpp
|
| index 4c0625597344ef35fb138720c523486b79d4c37d..d1679c3cb5fd1d3744cf4a57a4f22976008b8825 100644
|
| --- a/third_party/WebKit/Source/core/inspector/InspectorDOMAgent.cpp
|
| +++ b/third_party/WebKit/Source/core/inspector/InspectorDOMAgent.cpp
|
| @@ -51,8 +51,6 @@
|
| #include "core/dom/shadow/InsertionPoint.h"
|
| #include "core/dom/shadow/ShadowRoot.h"
|
| #include "core/editing/serializers/Serialization.h"
|
| -#include "core/fileapi/File.h"
|
| -#include "core/fileapi/FileList.h"
|
| #include "core/frame/LocalFrame.h"
|
| #include "core/html/HTMLFrameOwnerElement.h"
|
| #include "core/html/HTMLInputElement.h"
|
| @@ -1332,10 +1330,10 @@ void InspectorDOMAgent::setFileInputFiles(ErrorString* errorString, int nodeId,
|
| return;
|
| }
|
|
|
| - FileList* fileList = FileList::create();
|
| + Vector<String> paths;
|
| for (size_t index = 0; index < files->length(); ++index)
|
| - fileList->append(File::create(files->get(index)));
|
| - toHTMLInputElement(node)->setFiles(fileList);
|
| + paths.append(files->get(index));
|
| + toHTMLInputElement(node)->setFilesFromPaths(paths);
|
| }
|
|
|
| void InspectorDOMAgent::getBoxModel(ErrorString* errorString, int nodeId, std::unique_ptr<protocol::DOM::BoxModel>* model)
|
|
|