| 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 d1679c3cb5fd1d3744cf4a57a4f22976008b8825..4c0625597344ef35fb138720c523486b79d4c37d 100644
|
| --- a/third_party/WebKit/Source/core/inspector/InspectorDOMAgent.cpp
|
| +++ b/third_party/WebKit/Source/core/inspector/InspectorDOMAgent.cpp
|
| @@ -51,6 +51,8 @@
|
| #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"
|
| @@ -1330,10 +1332,10 @@
|
| return;
|
| }
|
|
|
| - Vector<String> paths;
|
| + FileList* fileList = FileList::create();
|
| for (size_t index = 0; index < files->length(); ++index)
|
| - paths.append(files->get(index));
|
| - toHTMLInputElement(node)->setFilesFromPaths(paths);
|
| + fileList->append(File::create(files->get(index)));
|
| + toHTMLInputElement(node)->setFiles(fileList);
|
| }
|
|
|
| void InspectorDOMAgent::getBoxModel(ErrorString* errorString, int nodeId, std::unique_ptr<protocol::DOM::BoxModel>* model)
|
|
|