Index: third_party/WebKit/Source/core/dom/ScriptLoader.cpp |
diff --git a/third_party/WebKit/Source/core/dom/ScriptLoader.cpp b/third_party/WebKit/Source/core/dom/ScriptLoader.cpp |
index a379ffe412b44b9442afb0b8ea8910227565cbfd..0477cd803e2974ae3f1e11e038c194cc2a8e9c1a 100644 |
--- a/third_party/WebKit/Source/core/dom/ScriptLoader.cpp |
+++ b/third_party/WebKit/Source/core/dom/ScriptLoader.cpp |
@@ -50,6 +50,7 @@ |
#include "core/svg/SVGScriptElement.h" |
#include "platform/MIMETypeRegistry.h" |
#include "platform/weborigin/SecurityOrigin.h" |
+#include "public/platform/WebFrameScheduler.h" |
#include "wtf/StdLibExtras.h" |
#include "wtf/text/StringBuilder.h" |
#include "wtf/text/StringHash.h" |
@@ -259,7 +260,7 @@ |
if (frame) { |
ScriptState* scriptState = ScriptState::forMainWorld(frame); |
if (scriptState->contextIsValid()) |
- ScriptStreamer::startStreaming(m_pendingScript, PendingScript::Async, frame->settings(), scriptState); |
+ ScriptStreamer::startStreaming(m_pendingScript, PendingScript::Async, frame->settings(), scriptState, frame->frameScheduler()->loadingTaskRunner()); |
} |
contextDocument->scriptRunner()->queueScriptForExecution(this, ScriptRunner::ASYNC_EXECUTION); |
// Note that watchForLoad can immediately call notifyFinished. |