| 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..22118089d6a6dc473a15d8211d9f1c85c6b744a4 100644
|
| --- a/third_party/WebKit/Source/core/layout/compositing/PaintLayerCompositor.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/compositing/PaintLayerCompositor.cpp
|
| @@ -888,9 +888,10 @@ 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 && view->shouldThrottleRendering()));
|
| } else {
|
| ASSERT(lifecycle().state() == DocumentLifecycle::PaintInvalidationClean
|
| || (view && view->shouldThrottleRendering()));
|
|
|