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

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

Issue 23874019: Web Animations CSS: Start running animations on the compositor (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase and rename hasActiveAnimationOnCompositor to hasActiveAnimationsOnCompositor Created 7 years, 1 month 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/dom/Element.cpp ('k') | Source/core/rendering/CompositedLayerMapping.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/frame/FrameView.cpp
diff --git a/Source/core/frame/FrameView.cpp b/Source/core/frame/FrameView.cpp
index aa4988f149f2db66f85fdc75c814b79b31926950..e5dc0640fc93da5f00fe0e7ffc6a536c53e64d94 100644
--- a/Source/core/frame/FrameView.cpp
+++ b/Source/core/frame/FrameView.cpp
@@ -2050,6 +2050,11 @@ void FrameView::serviceScriptedAnimations(double monotonicAnimationStartTime)
if (!RuntimeEnabledFeatures::webAnimationsCSSEnabled())
frame->animation().serviceAnimations();
+ // FIXME: Animation events for newly started CSS Animations should be fired
+ // asynchronously after the style recalc that triggered them. For now we fire
+ // them here (a frame late) so that they at least apply against the correct
+ // animation state.
+ frame->document()->dispatchAnimationEvents();
frame->document()->serviceAnimations(monotonicAnimationStartTime);
frame->document()->dispatchAnimationEvents();
}
« no previous file with comments | « Source/core/dom/Element.cpp ('k') | Source/core/rendering/CompositedLayerMapping.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698