Index: third_party/WebKit/Source/core/html/parser/HTMLScriptRunner.cpp |
diff --git a/third_party/WebKit/Source/core/html/parser/HTMLScriptRunner.cpp b/third_party/WebKit/Source/core/html/parser/HTMLScriptRunner.cpp |
index f5839e7642282606744a733fac597e76f222fd93..01c77ad4bbbe5bf74158293ecc708d7e44f4b503 100644 |
--- a/third_party/WebKit/Source/core/html/parser/HTMLScriptRunner.cpp |
+++ b/third_party/WebKit/Source/core/html/parser/HTMLScriptRunner.cpp |
@@ -32,6 +32,7 @@ |
#include "core/dom/Element.h" |
#include "core/dom/IgnoreDestructiveWriteCountIncrementer.h" |
#include "core/dom/ScriptLoader.h" |
+#include "core/dom/TaskRunnerHelper.h" |
#include "core/events/Event.h" |
#include "core/fetch/ScriptResource.h" |
#include "core/frame/LocalFrame.h" |
@@ -358,7 +359,7 @@ void HTMLScriptRunner::requestParsingBlockingScript(Element* element) |
if (m_document->frame()) { |
ScriptState* scriptState = ScriptState::forMainWorld(m_document->frame()); |
if (scriptState) |
- ScriptStreamer::startStreaming(m_parserBlockingScript.get(), ScriptStreamer::ParsingBlocking, m_document->frame()->settings(), scriptState, m_document->loadingTaskRunner()); |
+ ScriptStreamer::startStreaming(m_parserBlockingScript.get(), ScriptStreamer::ParsingBlocking, m_document->frame()->settings(), scriptState, TaskRunnerHelper::getLoadingTaskRunner(m_document)); |
} |
m_parserBlockingScript->watchForLoad(this); |
@@ -374,7 +375,7 @@ void HTMLScriptRunner::requestDeferredScript(Element* element) |
if (m_document->frame() && !pendingScript->isReady()) { |
ScriptState* scriptState = ScriptState::forMainWorld(m_document->frame()); |
if (scriptState) |
- ScriptStreamer::startStreaming(pendingScript, ScriptStreamer::Deferred, m_document->frame()->settings(), scriptState, m_document->loadingTaskRunner()); |
+ ScriptStreamer::startStreaming(pendingScript, ScriptStreamer::Deferred, m_document->frame()->settings(), scriptState, TaskRunnerHelper::getLoadingTaskRunner(m_document)); |
} |
ASSERT(pendingScript->resource()); |