Index: third_party/WebKit/Source/core/layout/svg/LayoutSVGRect.cpp |
diff --git a/third_party/WebKit/Source/core/layout/svg/LayoutSVGRect.cpp b/third_party/WebKit/Source/core/layout/svg/LayoutSVGRect.cpp |
index 5e1703f8eddd91ef701ac1ad71fff75129f4acf4..a6f980c12196af18db745e0e5e98a52902838e77 100644 |
--- a/third_party/WebKit/Source/core/layout/svg/LayoutSVGRect.cpp |
+++ b/third_party/WebKit/Source/core/layout/svg/LayoutSVGRect.cpp |
@@ -83,6 +83,8 @@ void LayoutSVGRect::updateShapeFromElement() |
m_strokeBoundingBox = m_fillBoundingBox; |
if (style()->svgStyle().hasStroke()) |
m_strokeBoundingBox.inflate(strokeWidth() / 2); |
+ if (element()) |
+ element()->sizeMayHaveChanged(); |
} |
bool LayoutSVGRect::shapeDependentStrokeContains(const FloatPoint& point) |