| Index: third_party/WebKit/Source/core/layout/LayoutBox.cpp
|
| diff --git a/third_party/WebKit/Source/core/layout/LayoutBox.cpp b/third_party/WebKit/Source/core/layout/LayoutBox.cpp
|
| index 2a08e6d2032520da968c6cefe167dfc53f956bf5..854630c37c6e4ed220067245847b3fd0ce3a2821 100644
|
| --- a/third_party/WebKit/Source/core/layout/LayoutBox.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/LayoutBox.cpp
|
| @@ -2105,7 +2105,10 @@ bool LayoutBox::mapToVisualRectInAncestorSpace(const LayoutBoxModelObject* ances
|
| // We are now in our parent container's coordinate space. Apply our transform to obtain a bounding box
|
| // in the parent's coordinate space that encloses us.
|
| if (hasLayer() && layer()->transform()) {
|
| - rect = LayoutRect(layer()->transform()->mapRect(pixelSnappedIntRect(rect)));
|
| + // Use enclosingIntRect because we cannot properly compute pixel snapping for painted elements within
|
| + // the transform since we don't know the desired subpixel accumulation at this point, and the transform may
|
| + // include a scale.
|
| + rect = LayoutRect(layer()->transform()->mapRect(enclosingIntRect(rect)));
|
| topLeft = rect.location();
|
| topLeft.move(locationOffset());
|
| }
|
|
|