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

Unified Diff: Source/core/page/PageAnimator.cpp

Issue 212393002: Web Animations API: Ensure timing is updated if a RAF callback makes a player outdated. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove assert. Created 6 years, 9 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/animation/DocumentAnimations.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/page/PageAnimator.cpp
diff --git a/Source/core/page/PageAnimator.cpp b/Source/core/page/PageAnimator.cpp
index c2255481bb51838a961950b138e3f22151e50ae0..33b2d8365e336c68681c12392a40b464b532858b 100644
--- a/Source/core/page/PageAnimator.cpp
+++ b/Source/core/page/PageAnimator.cpp
@@ -41,6 +41,10 @@ void PageAnimator::serviceScriptedAnimations(double monotonicAnimationStartTime)
for (size_t i = 0; i < documents.size(); ++i)
documents[i]->serviceScriptedAnimations(monotonicAnimationStartTime);
+
+ // Frame callbacks might have started new players or caused existing players to become outdated.
+ for (size_t i = 0; i < documents.size(); ++i)
+ DocumentAnimations::updateOutdatedAnimationPlayersAfterFrameCallbacks(*documents[i]);
}
void PageAnimator::scheduleVisualUpdate()
« no previous file with comments | « Source/core/animation/DocumentAnimations.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698