| Index: Source/core/paint/DeprecatedPaintLayer.cpp
|
| diff --git a/Source/core/paint/DeprecatedPaintLayer.cpp b/Source/core/paint/DeprecatedPaintLayer.cpp
|
| index 81ce4734afe0738868d37804eac12213946169ad..83f026517b2d4eb8cec6a02dd67551f9d86ada16 100644
|
| --- a/Source/core/paint/DeprecatedPaintLayer.cpp
|
| +++ b/Source/core/paint/DeprecatedPaintLayer.cpp
|
| @@ -2220,7 +2220,7 @@ CompositingState DeprecatedPaintLayer::compositingState() const
|
|
|
| bool DeprecatedPaintLayer::isAllowedToQueryCompositingState() const
|
| {
|
| - if (gCompositingQueryMode == CompositingQueriesAreAllowed)
|
| + if (gCompositingQueryMode == CompositingQueriesAreAllowed || RuntimeEnabledFeatures::slimmingPaintV2Enabled())
|
| return true;
|
| return layoutObject()->document().lifecycle().state() >= DocumentLifecycle::InCompositingUpdate;
|
| }
|
|
|