| Index: third_party/WebKit/Source/core/html/parser/HTMLDocumentParser.cpp
|
| diff --git a/third_party/WebKit/Source/core/html/parser/HTMLDocumentParser.cpp b/third_party/WebKit/Source/core/html/parser/HTMLDocumentParser.cpp
|
| index 6a9670dd8df99938e0e3a61f4ddefa2d14c5f6fb..868e71e8c160c3c41f126250859126989ad402f7 100644
|
| --- a/third_party/WebKit/Source/core/html/parser/HTMLDocumentParser.cpp
|
| +++ b/third_party/WebKit/Source/core/html/parser/HTMLDocumentParser.cpp
|
| @@ -50,7 +50,6 @@
|
| #include "platform/TraceEvent.h"
|
| #include "platform/heap/Handle.h"
|
| #include "public/platform/Platform.h"
|
| -#include "public/platform/WebFrameScheduler.h"
|
| #include "public/platform/WebScheduler.h"
|
| #include "public/platform/WebThread.h"
|
| #include "wtf/RefCounted.h"
|
| @@ -144,8 +143,7 @@
|
| , m_tokenizer(syncPolicy == ForceSynchronousParsing ? HTMLTokenizer::create(m_options) : nullptr)
|
| , m_scriptRunner(HTMLScriptRunner::create(&document, this))
|
| , m_treeBuilder(HTMLTreeBuilder::create(this, &document, parserContentPolicy(), reportErrors, m_options))
|
| - , m_loadingTaskRunner(adoptPtr(document.loadingTaskRunner()->clone()))
|
| - , m_parserScheduler(HTMLParserScheduler::create(this, m_loadingTaskRunner.get()))
|
| + , m_parserScheduler(HTMLParserScheduler::create(this))
|
| , m_xssAuditorDelegate(&document)
|
| , m_weakFactory(this)
|
| , m_preloader(HTMLResourcePreloader::create(document))
|
| @@ -168,7 +166,6 @@
|
| , m_token(adoptPtr(new HTMLToken))
|
| , m_tokenizer(HTMLTokenizer::create(m_options))
|
| , m_treeBuilder(HTMLTreeBuilder::create(this, fragment, contextElement, this->parserContentPolicy(), m_options))
|
| - , m_loadingTaskRunner(adoptPtr(fragment->document().loadingTaskRunner()->clone()))
|
| , m_xssAuditorDelegate(&fragment->document())
|
| , m_weakFactory(this)
|
| , m_shouldUseThreading(false)
|
| @@ -804,7 +801,7 @@
|
| ASSERT(config->xssAuditor->isSafeToSendToAnotherThread());
|
| ASSERT(config->preloadScanner->isSafeToSendToAnotherThread());
|
| HTMLParserThread::shared()->postTask(threadSafeBind(&BackgroundHTMLParser::start, reference.release(), config.release(),
|
| - AllowCrossThreadAccess(m_loadingTaskRunner.get())));
|
| + AllowCrossThreadAccess(Platform::current()->currentThread()->scheduler())));
|
| }
|
|
|
| void HTMLDocumentParser::stopBackgroundParser()
|
|
|