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

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

Issue 135693003: Defer starting of animations until after compositing update (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove anonymous namespace. Created 6 years, 10 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
Index: Source/core/page/PageAnimator.cpp
diff --git a/Source/core/page/PageAnimator.cpp b/Source/core/page/PageAnimator.cpp
index 9e3c481193216d8ca058e4ac3af0612393284bf9..245e3a0be7f893ff45ca00106a3821644f40a49e 100644
--- a/Source/core/page/PageAnimator.cpp
+++ b/Source/core/page/PageAnimator.cpp
@@ -25,7 +25,8 @@ void PageAnimator::serviceScriptedAnimations(double monotonicAnimationStartTime)
for (RefPtr<Frame> frame = m_page->mainFrame(); frame; frame = frame->tree().traverseNext()) {
frame->view()->serviceScrollAnimations();
- DocumentAnimations::serviceOnAnimationFrame(*frame->document(), monotonicAnimationStartTime);
+ DocumentAnimations::updateAnimationTimingForAnimationFrame(*frame->document(), monotonicAnimationStartTime);
+ DocumentAnimations::dispatchAnimationEvents(*frame->document());
abarth-chromium 2014/02/24 06:14:08 Given that this function is dispatching events, do
dstockwell 2014/02/24 06:58:07 Will do. Looks like we can use the same collection
}
Vector<RefPtr<Document> > documents;

Powered by Google App Engine
This is Rietveld 408576698