| Index: third_party/WebKit/Source/core/layout/compositing/PaintLayerCompositor.cpp
|
| diff --git a/third_party/WebKit/Source/core/layout/compositing/PaintLayerCompositor.cpp b/third_party/WebKit/Source/core/layout/compositing/PaintLayerCompositor.cpp
|
| index b888a3ee33e6f6c1b8c3bc3747d2afc189efe99a..1b6cc4da61ac8573401c6c688b0f681e81052fcd 100644
|
| --- a/third_party/WebKit/Source/core/layout/compositing/PaintLayerCompositor.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/compositing/PaintLayerCompositor.cpp
|
| @@ -888,8 +888,9 @@ void PaintLayerCompositor::setTracksPaintInvalidations(bool tracksPaintInvalidat
|
| FrameView* view = m_layoutView.frameView();
|
| if (RuntimeEnabledFeatures::slimmingPaintV2Enabled()) {
|
| ASSERT(lifecycle().state() == DocumentLifecycle::CompositingForSlimmingPaintV2Clean
|
| - // TODO(wangxianzhu): Remove this when we remove the old path for spv2.
|
| - || lifecycle().state() == DocumentLifecycle::PaintInvalidationClean
|
| + || view->shouldThrottleRendering());
|
| + } else if (RuntimeEnabledFeatures::slimmingPaintSynchronizedPaintingEnabled()) {
|
| + ASSERT(lifecycle().state() == DocumentLifecycle::PaintClean
|
| || view->shouldThrottleRendering());
|
| } else {
|
| ASSERT(lifecycle().state() == DocumentLifecycle::PaintInvalidationClean
|
|
|