| Index: Source/core/layout/svg/LayoutSVGRect.cpp
|
| diff --git a/Source/core/layout/svg/LayoutSVGRect.cpp b/Source/core/layout/svg/LayoutSVGRect.cpp
|
| index b0c2ee717715973ebba9dc0485ce4c3116ccba86..c41e28d6e5bbad496ffdbdb7166209ea8e06a85c 100644
|
| --- a/Source/core/layout/svg/LayoutSVGRect.cpp
|
| +++ b/Source/core/layout/svg/LayoutSVGRect.cpp
|
| @@ -74,7 +74,11 @@ void LayoutSVGRect::updateShapeFromElement()
|
| }
|
| }
|
|
|
| - m_fillBoundingBox = FloatRect(FloatPoint(rect->x()->currentValue()->value(lengthContext), rect->y()->currentValue()->value(lengthContext)), boundingBoxSize);
|
| + m_fillBoundingBox = FloatRect(
|
| + FloatPoint(
|
| + lengthContext.valueForLength(style()->svgStyle().x(), LengthModeWidth),
|
| + lengthContext.valueForLength(style()->svgStyle().y(), LengthModeHeight)),
|
| + boundingBoxSize);
|
|
|
| // To decide if the stroke contains a point we create two rects which represent the inner and
|
| // the outer stroke borders. A stroke contains the point, if the point is between them.
|
|
|