| Index: Source/core/frame/FrameView.cpp
|
| diff --git a/Source/core/frame/FrameView.cpp b/Source/core/frame/FrameView.cpp
|
| index c9c429ac81677e8f703528ccb03a89e71f526610..f05eed5ed5c73df3124b095fbbcad543378d49f4 100644
|
| --- a/Source/core/frame/FrameView.cpp
|
| +++ b/Source/core/frame/FrameView.cpp
|
| @@ -2463,26 +2463,29 @@ void FrameView::updateLifecyclePhasesInternal(LifeCycleUpdateOption phases)
|
|
|
| ASSERT(lifecycle().state() >= DocumentLifecycle::CompositingClean);
|
|
|
| - if (phases == AllPhases) {
|
| - invalidateTreeIfNeededRecursive();
|
| -
|
| - if (view->compositor()->inCompositingMode())
|
| - scrollingCoordinator()->updateAfterCompositingChangeIfNeeded();
|
| + if (phases == OnlyUpToCompositingCleanPlusScrolling)
|
| + return;
|
|
|
| - updateCompositedSelectionIfNeeded();
|
| + invalidateTreeIfNeededRecursive();
|
|
|
| - if (RuntimeEnabledFeatures::slimmingPaintV2Enabled()) {
|
| - paintForSlimmingPaintV2();
|
| - compositeForSlimmingPaintV2();
|
| - }
|
| + if (view->compositor()->inCompositingMode())
|
| + scrollingCoordinator()->updateAfterCompositingChangeIfNeeded();
|
|
|
| - if (RuntimeEnabledFeatures::frameTimingSupportEnabled())
|
| - updateFrameTimingRequestsIfNeeded();
|
| + updateCompositedSelectionIfNeeded();
|
|
|
| - ASSERT(!view->hasPendingSelection());
|
| - ASSERT(lifecycle().state() == DocumentLifecycle::PaintInvalidationClean
|
| - || (RuntimeEnabledFeatures::slimmingPaintV2Enabled() && lifecycle().state() == DocumentLifecycle::CompositingForSlimmingPaintV2Clean));
|
| + if (RuntimeEnabledFeatures::slimmingPaintV2Enabled()) {
|
| + paintForSlimmingPaintV2();
|
| + if (phases == OnlyUpToPaintForSlimmingPaintV2Clean)
|
| + return;
|
| + compositeForSlimmingPaintV2();
|
| }
|
| +
|
| + if (RuntimeEnabledFeatures::frameTimingSupportEnabled())
|
| + updateFrameTimingRequestsIfNeeded();
|
| +
|
| + ASSERT(!view->hasPendingSelection());
|
| + ASSERT(lifecycle().state() == DocumentLifecycle::PaintInvalidationClean
|
| + || (RuntimeEnabledFeatures::slimmingPaintV2Enabled() && lifecycle().state() == DocumentLifecycle::CompositingForSlimmingPaintV2Clean));
|
| }
|
| }
|
|
|
|
|