Chromium Code Reviews| 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 8cc5859cdb74d683fcf2beeddef15f128a77e7ba..d264acfd64dce0c00b153caf5869d1cdbf541098 100644 |
| --- a/third_party/WebKit/Source/core/layout/LayoutBox.cpp |
| +++ b/third_party/WebKit/Source/core/layout/LayoutBox.cpp |
| @@ -2077,7 +2077,9 @@ 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 propery compute pixel snapping for painted elements within the transform since we |
|
pdr.
2016/06/24 22:47:51
Nit propery
pdr.
2016/06/24 22:49:18
Nit: line length
chrishtr
2016/06/24 22:50:14
Done.
|
| + // 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()); |
| } |