Index: Source/core/html/parser/HTMLDocumentParser.cpp |
diff --git a/Source/core/html/parser/HTMLDocumentParser.cpp b/Source/core/html/parser/HTMLDocumentParser.cpp |
index 4dd1baf3c943b4f2673f6fe92458a47b31f47801..8ecf60d1498e0e3b2f16f9a6e9c98a944e682803 100644 |
--- a/Source/core/html/parser/HTMLDocumentParser.cpp |
+++ b/Source/core/html/parser/HTMLDocumentParser.cpp |
@@ -46,7 +46,9 @@ |
#include "platform/ThreadedDataReceiver.h" |
#include "platform/TraceEvent.h" |
#include "platform/heap/Handle.h" |
-#include "platform/scheduler/Scheduler.h" |
+#include "public/platform/Platform.h" |
+#include "public/platform/WebScheduler.h" |
+#include "public/platform/WebThread.h" |
#include "wtf/Functional.h" |
#include "wtf/RefCounted.h" |
#include "wtf/TemporaryChange.h" |
@@ -785,7 +787,8 @@ void HTMLDocumentParser::startBackgroundParser() |
ASSERT(config->xssAuditor->isSafeToSendToAnotherThread()); |
ASSERT(config->preloadScanner->isSafeToSendToAnotherThread()); |
- HTMLParserThread::shared()->postTask(bind(&BackgroundHTMLParser::start, reference.release(), config.release(), Scheduler::shared())); |
+ HTMLParserThread::shared()->postTask(bind(&BackgroundHTMLParser::start, reference.release(), config.release(), |
+ Platform::current()->currentThread()->scheduler())); |
} |
void HTMLDocumentParser::stopBackgroundParser() |