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

Unified Diff: Source/core/animation/AnimationTimeline.cpp

Issue 1287013003: Ensure serviceOnNextFrame isn't put off indefinitely. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Adjust layout test Created 5 years, 4 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 | « LayoutTests/virtual/threaded/transitions/composited-with-hit-testing-expected.txt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/animation/AnimationTimeline.cpp
diff --git a/Source/core/animation/AnimationTimeline.cpp b/Source/core/animation/AnimationTimeline.cpp
index dd7057a56e7d7f72f0abb5483a5ef455c5fbf34a..28548a928b31314deb2e781a48c3269f7d3543fb 100644
--- a/Source/core/animation/AnimationTimeline.cpp
+++ b/Source/core/animation/AnimationTimeline.cpp
@@ -174,6 +174,8 @@ void AnimationTimeline::scheduleNextService()
void AnimationTimeline::AnimationTimelineTiming::wakeAfter(double duration)
{
+ if (m_timer.isActive() && m_timer.nextFireInterval() < duration)
+ return;
m_timer.startOneShot(duration, FROM_HERE);
}
« no previous file with comments | « LayoutTests/virtual/threaded/transitions/composited-with-hit-testing-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698