Index: Source/core/layout/compositing/DeprecatedPaintLayerCompositor.cpp |
diff --git a/Source/core/layout/compositing/DeprecatedPaintLayerCompositor.cpp b/Source/core/layout/compositing/DeprecatedPaintLayerCompositor.cpp |
index c0a398585890cfc7c03fe99df9a98aa98071bb23..1f1e46a5bdcb9954b087fab11b4e5bc039c923d7 100644 |
--- a/Source/core/layout/compositing/DeprecatedPaintLayerCompositor.cpp |
+++ b/Source/core/layout/compositing/DeprecatedPaintLayerCompositor.cpp |
@@ -878,16 +878,9 @@ void DeprecatedPaintLayerCompositor::resetTrackedPaintInvalidationRects() |
void DeprecatedPaintLayerCompositor::setTracksPaintInvalidations(bool tracksPaintInvalidations) |
{ |
-#if ENABLE(ASSERT) |
- if (RuntimeEnabledFeatures::slimmingPaintV2Enabled()) { |
- ASSERT(lifecycle().state() == DocumentLifecycle::CompositingForSlimmingPaintV2Clean |
- // TODO(wangxianzhu): Remove this when we remove the old path for spv2. |
- || lifecycle().state() == DocumentLifecycle::PaintInvalidationClean); |
- } else { |
- ASSERT(lifecycle().state() == DocumentLifecycle::PaintInvalidationClean); |
- } |
-#endif |
- |
+ ASSERT(lifecycle().state() == |
+ (RuntimeEnabledFeatures::slimmingPaintV2Enabled() |
+ ? DocumentLifecycle::CompositingForSlimmingPaintV2Clean : DocumentLifecycle::PaintInvalidationClean)); |
m_isTrackingPaintInvalidations = tracksPaintInvalidations; |
} |