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

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

Issue 947983002: Move zoom handling for x and y properties to svg (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: move function Created 5 years, 10 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
« no previous file with comments | « Source/core/css/resolver/StyleBuilderConverter.cpp ('k') | Source/core/layout/svg/SVGPathData.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « Source/core/css/resolver/StyleBuilderConverter.cpp ('k') | Source/core/layout/svg/SVGPathData.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698