| Index: Source/core/paint/DeprecatedPaintLayer.cpp
|
| diff --git a/Source/core/paint/DeprecatedPaintLayer.cpp b/Source/core/paint/DeprecatedPaintLayer.cpp
|
| index e959ac12c71119335e8658c459a34e4855746927..07ee550151ae3502f50e31b085ea5b290adc2bc5 100644
|
| --- a/Source/core/paint/DeprecatedPaintLayer.cpp
|
| +++ b/Source/core/paint/DeprecatedPaintLayer.cpp
|
| @@ -2209,7 +2209,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;
|
| }
|
|
|