Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(152)

Unified Diff: third_party/WebKit/Source/core/layout/svg/LayoutSVGRect.cpp

Issue 2204503002: ResizeObserver pt6: integration (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added test for moving dom inside eventloop Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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)

Powered by Google App Engine
This is Rietveld 408576698