Index: Source/core/layout/compositing/DeprecatedPaintLayerCompositor.cpp |
diff --git a/Source/core/layout/compositing/DeprecatedPaintLayerCompositor.cpp b/Source/core/layout/compositing/DeprecatedPaintLayerCompositor.cpp |
index 8e789ad3cee61cba101c1beba65e492a19f878d3..1f1e46a5bdcb9954b087fab11b4e5bc039c923d7 100644 |
--- a/Source/core/layout/compositing/DeprecatedPaintLayerCompositor.cpp |
+++ b/Source/core/layout/compositing/DeprecatedPaintLayerCompositor.cpp |
@@ -878,7 +878,9 @@ void DeprecatedPaintLayerCompositor::resetTrackedPaintInvalidationRects() |
void DeprecatedPaintLayerCompositor::setTracksPaintInvalidations(bool tracksPaintInvalidations) |
{ |
- ASSERT(lifecycle().state() == DocumentLifecycle::PaintInvalidationClean); |
+ ASSERT(lifecycle().state() == |
+ (RuntimeEnabledFeatures::slimmingPaintV2Enabled() |
+ ? DocumentLifecycle::CompositingForSlimmingPaintV2Clean : DocumentLifecycle::PaintInvalidationClean)); |
m_isTrackingPaintInvalidations = tracksPaintInvalidations; |
} |