Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(933)

Unified Diff: Source/core/frame/DOMTimerCoordinator.cpp

Issue 956333002: Refactor TimeBase to post tasks. Workers to use real Idle tasks. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/fetch/ResourceTest.cpp ('k') | Source/core/workers/WorkerGlobalScope.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/frame/DOMTimerCoordinator.cpp
diff --git a/Source/core/frame/DOMTimerCoordinator.cpp b/Source/core/frame/DOMTimerCoordinator.cpp
index f6ae6fe9764c7b2386494c7ce87d3a72ad6a9446..0cf79e589e1379571028169e61cfc2f6aec96fdb 100644
--- a/Source/core/frame/DOMTimerCoordinator.cpp
+++ b/Source/core/frame/DOMTimerCoordinator.cpp
@@ -43,8 +43,9 @@ void DOMTimerCoordinator::removeTimeoutByID(int timeoutID)
void DOMTimerCoordinator::didChangeTimerAlignmentInterval()
{
+ double now = monotonicallyIncreasingTime();
for (TimeoutMap::iterator iter = m_timers.begin(); iter != m_timers.end(); ++iter)
- iter->value->didChangeAlignmentInterval();
+ iter->value->didChangeAlignmentInterval(now);
}
DEFINE_TRACE(DOMTimerCoordinator)
« no previous file with comments | « Source/core/fetch/ResourceTest.cpp ('k') | Source/core/workers/WorkerGlobalScope.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698