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

Unified Diff: Source/core/animation/DocumentAnimations.cpp

Issue 1246363002: Avoid updating compositor animations in hitTest path (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: fix comments#7 Created 5 years, 5 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/animation/DocumentAnimations.cpp
diff --git a/Source/core/animation/DocumentAnimations.cpp b/Source/core/animation/DocumentAnimations.cpp
index dc6628da18791ea0525ad827ca312f240f45b819..626b4d8bcc83ab43e53a58292030a12c5f4ed09f 100644
--- a/Source/core/animation/DocumentAnimations.cpp
+++ b/Source/core/animation/DocumentAnimations.cpp
@@ -89,7 +89,7 @@ bool DocumentAnimations::needsOutdatedAnimationUpdate(const Document& document)
void DocumentAnimations::updateCompositorAnimations(Document& document)
{
- ASSERT(document.lifecycle().state() == DocumentLifecycle::CompositingClean);
+ ASSERT(document.lifecycle().state() >= DocumentLifecycle::CompositingClean);
if (document.compositorPendingAnimations().update()) {
ASSERT(document.view());
document.view()->scheduleAnimation();
« no previous file with comments | « no previous file | Source/core/frame/FrameView.cpp » ('j') | Source/core/layout/compositing/DeprecatedPaintLayerCompositor.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698