| Index: Source/core/rendering/svg/RenderSVGRect.cpp
 | 
| diff --git a/Source/core/rendering/svg/RenderSVGRect.cpp b/Source/core/rendering/svg/RenderSVGRect.cpp
 | 
| index e50f50ce7d0fda9d7534a13b88f32932aa233be5..45496d47953cafba3d3b7f8dd012dd2731795f61 100644
 | 
| --- a/Source/core/rendering/svg/RenderSVGRect.cpp
 | 
| +++ b/Source/core/rendering/svg/RenderSVGRect.cpp
 | 
| @@ -74,7 +74,11 @@ void RenderSVGRect::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.
 | 
| 
 |