Commit d01445ab authored by wkorman's avatar wkorman Committed by Commit bot

For SPv2, move updateAnimations() to follow scrolling and paint invalidation.

BUG=666986

Review-Url: https://codereview.chromium.org/2570723002
Cr-Commit-Position: refs/heads/master@{#438971}
parent 4096df6f
......@@ -2873,8 +2873,6 @@ void FrameView::updateLifecyclePhasesInternal(
if (!RuntimeEnabledFeatures::slimmingPaintV2Enabled()) {
view.compositor()->updateIfNeededRecursive();
} else {
DocumentAnimations::updateAnimations(layoutView()->document());
forAllNonThrottledFrameViews([](FrameView& frameView) {
frameView.layoutView()->layer()->updateDescendantDependentFlags();
frameView.layoutView()->commitPendingSelection();
......@@ -2904,6 +2902,9 @@ void FrameView::updateLifecyclePhasesInternal(
updatePaintProperties();
}
if (RuntimeEnabledFeatures::slimmingPaintV2Enabled())
DocumentAnimations::updateAnimations(layoutView()->document());
if (targetState == DocumentLifecycle::PaintClean) {
if (!m_frame->document()->printing())
synchronizedPaint();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment