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

Unified Diff: Source/core/layout/svg/SVGPathData.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/layout/svg/LayoutSVGRect.cpp ('k') | Source/core/svg/SVGLengthContext.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/svg/SVGPathData.cpp
diff --git a/Source/core/layout/svg/SVGPathData.cpp b/Source/core/layout/svg/SVGPathData.cpp
index c884a5bc29ee06e1f2cf1179132b5616bdcf9e60..954b47e2c020a0568fb85fe811f30704178b0292 100644
--- a/Source/core/layout/svg/SVGPathData.cpp
+++ b/Source/core/layout/svg/SVGPathData.cpp
@@ -116,9 +116,9 @@ static void updatePathFromRectElement(SVGElement* element, Path& path)
if (!width && !height)
return;
- const SVGLayoutStyle& style = rect->renderer()->style()->svgStyle();
- float x = lengthContext.valueForLength(style.x(), LengthModeWidth);
- float y = lengthContext.valueForLength(style.y(), LengthModeHeight);
+ const LayoutStyle& style = rect->renderer()->styleRef();
+ float x = lengthContext.valueForLength(style.svgStyle().x(), style, LengthModeWidth);
+ float y = lengthContext.valueForLength(style.svgStyle().y(), style, LengthModeHeight);
float rx = rect->rx()->currentValue()->value(lengthContext);
float ry = rect->ry()->currentValue()->value(lengthContext);
bool hasRx = rx > 0;
« no previous file with comments | « Source/core/layout/svg/LayoutSVGRect.cpp ('k') | Source/core/svg/SVGLengthContext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698