| Index: Source/core/html/parser/HTMLParserScheduler.cpp
|
| diff --git a/Source/core/html/parser/HTMLParserScheduler.cpp b/Source/core/html/parser/HTMLParserScheduler.cpp
|
| index 6efa7521cbc94e6f4ce0a99ef717fb463908a44f..1599c61d12f98fc4647c59bed52ea148e674f698 100644
|
| --- a/Source/core/html/parser/HTMLParserScheduler.cpp
|
| +++ b/Source/core/html/parser/HTMLParserScheduler.cpp
|
| @@ -29,7 +29,8 @@
|
| #include "core/dom/Document.h"
|
| #include "core/html/parser/HTMLDocumentParser.h"
|
| #include "core/frame/FrameView.h"
|
| -#include "platform/scheduler/Scheduler.h"
|
| +#include "public/platform/Platform.h"
|
| +#include "public/platform/WebScheduler.h"
|
| #include "wtf/CurrentTime.h"
|
|
|
| namespace blink {
|
| @@ -117,7 +118,7 @@ void HTMLParserScheduler::resume()
|
|
|
| inline bool HTMLParserScheduler::shouldYield(const SpeculationsPumpSession& session) const
|
| {
|
| - if (Scheduler::shared()->shouldYieldForHighPriorityWork())
|
| + if (Platform::current()->scheduler() && Platform::current()->scheduler()->shouldYieldForHighPriorityWork())
|
| return true;
|
|
|
| const double parserTimeLimit = 0.5;
|
|
|