| Index: Source/core/rendering/RenderLayerCompositor.cpp
|
| diff --git a/Source/core/rendering/RenderLayerCompositor.cpp b/Source/core/rendering/RenderLayerCompositor.cpp
|
| index b2404e275450d3d72b3ef4df8286073b614878bb..3da114c0765a437030aa4213f25899e3f8bf1d91 100644
|
| --- a/Source/core/rendering/RenderLayerCompositor.cpp
|
| +++ b/Source/core/rendering/RenderLayerCompositor.cpp
|
| @@ -746,7 +746,7 @@ void RenderLayerCompositor::addToOverlapMap(OverlapMap& overlapMap, RenderLayer*
|
| boundsComputed = true;
|
| }
|
|
|
| - IntRect clipRect = pixelSnappedIntRect(layer->clipper().backgroundClipRect(ClipRectsContext(rootRenderLayer(), 0, AbsoluteClipRects)).rect()); // FIXME: Incorrect for CSS regions.
|
| + IntRect clipRect = pixelSnappedIntRect(layer->clipper().backgroundClipRect(ClipRectsContext(rootRenderLayer(), AbsoluteClipRects)).rect());
|
| clipRect.intersect(layerBounds);
|
| overlapMap.add(layer, clipRect);
|
| }
|
| @@ -1739,7 +1739,7 @@ bool RenderLayerCompositor::clippedByAncestor(const RenderLayer* layer) const
|
| if (!computeClipRoot || computeClipRoot == layer)
|
| return false;
|
|
|
| - return layer->clipper().backgroundClipRect(ClipRectsContext(computeClipRoot, 0, TemporaryClipRects)).rect() != PaintInfo::infiniteRect(); // FIXME: Incorrect for CSS regions.
|
| + return layer->clipper().backgroundClipRect(ClipRectsContext(computeClipRoot, TemporaryClipRects)).rect() != PaintInfo::infiniteRect();
|
| }
|
|
|
| // Return true if the given layer is a stacking context and has compositing child
|
|
|