| Index: Source/core/dom/ScriptRunner.cpp
|
| diff --git a/Source/core/dom/ScriptRunner.cpp b/Source/core/dom/ScriptRunner.cpp
|
| index 0e0e3ab688dcf4e6a5982408bd5403b2482a0291..7987bf5098300901c9c579c33f4ad0dc081ca6e3 100644
|
| --- a/Source/core/dom/ScriptRunner.cpp
|
| +++ b/Source/core/dom/ScriptRunner.cpp
|
| @@ -30,7 +30,9 @@
|
| #include "core/dom/Element.h"
|
| #include "core/dom/ScriptLoader.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"
|
|
|
| // This bit of magic is needed by oilpan to prevent the ScriptRunner from leaking.
|
| @@ -210,7 +212,7 @@ void ScriptRunner::executeScripts()
|
|
|
| bool ScriptRunner::yieldForHighPriorityWork()
|
| {
|
| - if (!Scheduler::shared()->shouldYieldForHighPriorityWork())
|
| + if (!Platform::current()->currentThread()->scheduler()->shouldYieldForHighPriorityWork())
|
| return false;
|
|
|
| postTaskIfOneIsNotAlreadyInFlight();
|
| @@ -223,7 +225,7 @@ void ScriptRunner::postTaskIfOneIsNotAlreadyInFlight()
|
| return;
|
|
|
| // FIXME: Rename task() so that it's obvious it cancels any pending task.
|
| - Scheduler::shared()->postLoadingTask(FROM_HERE, m_executeScriptsTaskFactory.task());
|
| + Platform::current()->currentThread()->scheduler()->postLoadingTask(FROM_HERE, m_executeScriptsTaskFactory.task());
|
| }
|
|
|
| DEFINE_TRACE(ScriptRunner)
|
|
|