| 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 91f24af7830c77cb38e2ba32e72d14cb5c2dec08..6c86ce92d863e140f42445988c3325b06ed7d0c0 100644
|
| --- a/third_party/WebKit/Source/core/layout/LayoutBox.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/LayoutBox.cpp
|
| @@ -2328,7 +2328,9 @@ bool LayoutBox::mapToVisualRectInAncestorSpace(
|
| // 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)));
|
| + FloatRect floatRect =
|
| + rect.isEmpty() ? FloatRect(rect) : FloatRect(enclosingIntRect(rect));
|
| + rect = LayoutRect(layer()->transform()->mapRect(floatRect));
|
| }
|
| LayoutPoint topLeft = rect.location();
|
| if (container->isBox()) {
|
|
|