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

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

Issue 2693363002: Move animation update to follow paint phase for SPv2. (Closed)
Patch Set: Call updateAnimations in SVGImage for SPv2. Created 3 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: third_party/WebKit/Source/core/frame/FrameView.cpp
diff --git a/third_party/WebKit/Source/core/frame/FrameView.cpp b/third_party/WebKit/Source/core/frame/FrameView.cpp
index 9ff63af945b6b6821aa51ca6ce281d6e2e7d4510..54a2ec8c6fdf0c1d8bcf65277c2684a284cd039e 100644
--- a/third_party/WebKit/Source/core/frame/FrameView.cpp
+++ b/third_party/WebKit/Source/core/frame/FrameView.cpp
@@ -3058,9 +3058,6 @@ void FrameView::updateLifecyclePhasesInternal(
prePaint();
}
- if (RuntimeEnabledFeatures::slimmingPaintV2Enabled())
- DocumentAnimations::updateAnimations(layoutView()->document());
-
if (targetState == DocumentLifecycle::PaintClean) {
if (!m_frame->document()->printing() ||
RuntimeEnabledFeatures::printBrowserEnabled())
@@ -3073,6 +3070,11 @@ void FrameView::updateLifecyclePhasesInternal(
DCHECK((m_frame->document()->printing() &&
lifecycle().state() == DocumentLifecycle::PrePaintClean) ||
lifecycle().state() == DocumentLifecycle::PaintClean);
+
+ if (RuntimeEnabledFeatures::slimmingPaintV2Enabled()) {
+ DocumentAnimations::updateAnimations(layoutView()->document(),
+ DocumentLifecycle::PaintClean);
+ }
}
forAllNonThrottledFrameViews([](FrameView& frameView) {

Powered by Google App Engine
This is Rietveld 408576698