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

Unified Diff: Source/core/animation/DocumentAnimations.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.h ('k') | Source/core/page/PageAnimator.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/animation/DocumentAnimations.cpp
diff --git a/Source/core/animation/DocumentAnimations.cpp b/Source/core/animation/DocumentAnimations.cpp
index 86f9286295180e76595581b4ce58bb73698c1cfa..ac67bc881e8119f49b83aa0896b648494b643b80 100644
--- a/Source/core/animation/DocumentAnimations.cpp
+++ b/Source/core/animation/DocumentAnimations.cpp
@@ -60,6 +60,13 @@ void DocumentAnimations::updateAnimationTimingForAnimationFrame(Document& docume
updateAnimationTiming(document);
}
+void DocumentAnimations::updateOutdatedAnimationPlayersAfterFrameCallbacks(Document& document)
+{
+ if (document.timeline().hasOutdatedAnimationPlayer()) {
+ updateAnimationTiming(document);
+ }
+}
+
void DocumentAnimations::updateAnimationTimingForGetComputedStyle(Node& node, CSSPropertyID property)
{
if (!node.isElementNode())
« no previous file with comments | « Source/core/animation/DocumentAnimations.h ('k') | Source/core/page/PageAnimator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698