| Index: Source/core/layout/compositing/DeprecatedPaintLayerCompositor.cpp
|
| diff --git a/Source/core/layout/compositing/DeprecatedPaintLayerCompositor.cpp b/Source/core/layout/compositing/DeprecatedPaintLayerCompositor.cpp
|
| index 0758e5f999cbdd82c45d3a0eee9c16c83beb3b02..53657cedd899cc8ab4f52e093fa34c4a0a19b8e6 100644
|
| --- a/Source/core/layout/compositing/DeprecatedPaintLayerCompositor.cpp
|
| +++ b/Source/core/layout/compositing/DeprecatedPaintLayerCompositor.cpp
|
| @@ -878,9 +878,16 @@ void DeprecatedPaintLayerCompositor::resetTrackedPaintInvalidationRects()
|
|
|
| void DeprecatedPaintLayerCompositor::setTracksPaintInvalidations(bool tracksPaintInvalidations)
|
| {
|
| - ASSERT(lifecycle().state() ==
|
| - (RuntimeEnabledFeatures::slimmingPaintV2Enabled()
|
| - ? DocumentLifecycle::CompositingForSlimmingPaintV2Clean : DocumentLifecycle::PaintInvalidationClean));
|
| +#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
|
| +
|
| m_isTrackingPaintInvalidations = tracksPaintInvalidations;
|
| }
|
|
|
|
|