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

Unified Diff: sky/engine/core/animation/PendingAnimations.cpp

Issue 875283003: Make all callers of scheduleAnimation() use scheduleVisualUpdate(). (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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: sky/engine/core/animation/PendingAnimations.cpp
diff --git a/sky/engine/core/animation/PendingAnimations.cpp b/sky/engine/core/animation/PendingAnimations.cpp
index 75879065a74a12664550cefdd611c342f2e66f97..7025e63114f70595df1d055954b57e32b2de57cb 100644
--- a/sky/engine/core/animation/PendingAnimations.cpp
+++ b/sky/engine/core/animation/PendingAnimations.cpp
@@ -46,8 +46,7 @@ void PendingAnimations::add(AnimationPlayer* player)
m_pending.append(player);
Document* document = player->timeline()->document();
- if (document->view())
- document->view()->scheduleAnimation();
+ document->scheduleVisualUpdate();
bool visible = document->page() && document->page()->visibilityState() == PageVisibilityStateVisible;
if (!visible && !m_timer.isActive()) {
« no previous file with comments | « sky/engine/core/animation/DocumentAnimations.cpp ('k') | sky/engine/core/dom/ScriptedAnimationController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698