| Index: third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp
|
| diff --git a/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp b/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp
|
| index 57cfc9ebe551b980838e02bad3c29dddd71c6cfb..5eecea33f8aaaed42a80ed7258f8f5c4f0044142 100644
|
| --- a/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp
|
| @@ -581,14 +581,8 @@ bool CompositedLayerMapping::updateGraphicsLayerConfiguration()
|
|
|
| static IntRect clipBox(LayoutBox* layoutObject)
|
| {
|
| - LayoutRect result = LayoutRect(LayoutRect::infiniteIntRect());
|
| - if (layoutObject->hasOverflowClip() || layoutObject->style()->containsPaint())
|
| - result = layoutObject->overflowClipRect(LayoutPoint());
|
| -
|
| - if (layoutObject->hasClip())
|
| - result.intersect(layoutObject->clipRect(LayoutPoint()));
|
| -
|
| - return pixelSnappedIntRect(result);
|
| + // TODO(chrishtr): pixel snapping is most likely incorrect here.
|
| + return pixelSnappedIntRect(layoutObject->clippingRect());
|
| }
|
|
|
| static LayoutPoint computeOffsetFromCompositedAncestor(const PaintLayer* layer, const PaintLayer* compositedAncestor)
|
|
|