Index: third_party/WebKit/Source/core/layout/compositing/CompositingInputsUpdater.cpp |
diff --git a/third_party/WebKit/Source/core/layout/compositing/CompositingInputsUpdater.cpp b/third_party/WebKit/Source/core/layout/compositing/CompositingInputsUpdater.cpp |
index 4bb189d5abdbe4b956dc896b67e312927f3445a9..bee31e4f8dfcb800807fbfae8e6654e4ddaaacf1 100644 |
--- a/third_party/WebKit/Source/core/layout/compositing/CompositingInputsUpdater.cpp |
+++ b/third_party/WebKit/Source/core/layout/compositing/CompositingInputsUpdater.cpp |
@@ -147,21 +147,23 @@ void CompositingInputsUpdater::updateRecursive(PaintLayer* layer, |
PaintLayer::RareAncestorDependentCompositingInputs rareProperties; |
if (!layer->isRootLayer()) { |
- properties.clippedAbsoluteBoundingBox = |
- enclosingIntRect(m_geometryMap.absoluteRect( |
- FloatRect(layer->boundingBoxForCompositingOverlapTest()))); |
- // FIXME: Setting the absBounds to 1x1 instead of 0x0 makes very little |
- // sense, but removing this code will make JSGameBench sad. |
- // See https://codereview.chromium.org/13912020/ |
- if (properties.clippedAbsoluteBoundingBox.isEmpty()) |
- properties.clippedAbsoluteBoundingBox.setSize(IntSize(1, 1)); |
- |
- IntRect clipRect = |
- pixelSnappedIntRect(layer->clipper() |
- .backgroundClipRect(ClipRectsContext( |
- m_rootLayer, AbsoluteClipRects)) |
- .rect()); |
- properties.clippedAbsoluteBoundingBox.intersect(clipRect); |
+ if (!RuntimeEnabledFeatures::slimmingPaintV2Enabled()) { |
+ properties.clippedAbsoluteBoundingBox = |
+ enclosingIntRect(m_geometryMap.absoluteRect( |
+ FloatRect(layer->boundingBoxForCompositingOverlapTest()))); |
+ // FIXME: Setting the absBounds to 1x1 instead of 0x0 makes very little |
+ // sense, but removing this code will make JSGameBench sad. |
+ // See https://codereview.chromium.org/13912020/ |
+ if (properties.clippedAbsoluteBoundingBox.isEmpty()) |
+ properties.clippedAbsoluteBoundingBox.setSize(IntSize(1, 1)); |
+ |
+ IntRect clipRect = |
+ pixelSnappedIntRect(layer->clipper() |
+ .backgroundClipRect(ClipRectsContext( |
+ m_rootLayer, AbsoluteClipRects)) |
+ .rect()); |
+ properties.clippedAbsoluteBoundingBox.intersect(clipRect); |
+ } |
const PaintLayer* parent = layer->parent(); |
rareProperties.opacityAncestor = |