| Index: Source/platform/ThreadTimers.cpp
|
| diff --git a/Source/platform/ThreadTimers.cpp b/Source/platform/ThreadTimers.cpp
|
| index e6cbcf064336741194fc24295aa89daa114d2961..7755ce23fa36753e9c8c842322975703fc504039 100644
|
| --- a/Source/platform/ThreadTimers.cpp
|
| +++ b/Source/platform/ThreadTimers.cpp
|
| @@ -31,7 +31,8 @@
|
| #include "platform/SharedTimer.h"
|
| #include "platform/Timer.h"
|
| #include "platform/TraceEvent.h"
|
| -#include "platform/scheduler/Scheduler.h"
|
| +#include "public/platform/Platform.h"
|
| +#include "public/platform/WebScheduler.h"
|
| #include "wtf/CurrentTime.h"
|
| #include "wtf/MainThread.h"
|
|
|
| @@ -136,7 +137,8 @@ void ThreadTimers::sharedTimerFiredInternal()
|
| timer.fired();
|
|
|
| // Catch the case where the timer asked timers to fire in a nested event loop, or we are over time limit.
|
| - if (!m_firingTimers || timeToQuit < monotonicallyIncreasingTime() || (isMainThread() && Scheduler::shared()->shouldYieldForHighPriorityWork()))
|
| + if (!m_firingTimers || timeToQuit < monotonicallyIncreasingTime()
|
| + || (isMainThread() && Platform::current()->currentThread()->scheduler()->shouldYieldForHighPriorityWork()))
|
| break;
|
| }
|
|
|
|
|