Index: Source/core/layout/svg/LayoutSVGRect.cpp |
diff --git a/Source/core/layout/svg/LayoutSVGRect.cpp b/Source/core/layout/svg/LayoutSVGRect.cpp |
index c41e28d6e5bbad496ffdbdb7166209ea8e06a85c..7a350d14b3817fb8dd440031619e36060edacd70 100644 |
--- a/Source/core/layout/svg/LayoutSVGRect.cpp |
+++ b/Source/core/layout/svg/LayoutSVGRect.cpp |
@@ -76,8 +76,8 @@ void LayoutSVGRect::updateShapeFromElement() |
m_fillBoundingBox = FloatRect( |
FloatPoint( |
- lengthContext.valueForLength(style()->svgStyle().x(), LengthModeWidth), |
- lengthContext.valueForLength(style()->svgStyle().y(), LengthModeHeight)), |
+ lengthContext.valueForLength(styleRef().svgStyle().x(), styleRef(), LengthModeWidth), |
+ lengthContext.valueForLength(styleRef().svgStyle().y(), styleRef(), LengthModeHeight)), |
boundingBoxSize); |
// To decide if the stroke contains a point we create two rects which represent the inner and |