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

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

Issue 983103003: Use Length for the stroke-width property in SVGLayoutStyle (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: lengthSetterForProperty Created 5 years, 9 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/LayoutSVGText.cpp ('k') | Source/core/layout/svg/SVGLayoutTreeAsText.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/svg/SVGLayoutSupport.cpp
diff --git a/Source/core/layout/svg/SVGLayoutSupport.cpp b/Source/core/layout/svg/SVGLayoutSupport.cpp
index c9c11fe84f29394d932724f66df6fbc5f39f4a52..58520b57dadc2c3925f93ed0e35fb60c2777d37b 100644
--- a/Source/core/layout/svg/SVGLayoutSupport.cpp
+++ b/Source/core/layout/svg/SVGLayoutSupport.cpp
@@ -364,7 +364,7 @@ void SVGLayoutSupport::applyStrokeStyleToContext(GraphicsContext& context, const
const SVGLayoutStyle& svgStyle = style.svgStyle();
SVGLengthContext lengthContext(toSVGElement(object.node()));
- context.setStrokeThickness(svgStyle.strokeWidth()->value(lengthContext));
+ context.setStrokeThickness(lengthContext.valueForLength(svgStyle.strokeWidth()));
context.setLineCap(svgStyle.capStyle());
context.setLineJoin(svgStyle.joinStyle());
context.setMiterLimit(svgStyle.strokeMiterLimit());
@@ -381,7 +381,7 @@ void SVGLayoutSupport::applyStrokeStyleToStrokeData(StrokeData& strokeData, cons
const SVGLayoutStyle& svgStyle = style.svgStyle();
SVGLengthContext lengthContext(toSVGElement(object.node()));
- strokeData.setThickness(svgStyle.strokeWidth()->value(lengthContext));
+ strokeData.setThickness(lengthContext.valueForLength(svgStyle.strokeWidth()));
strokeData.setLineCap(svgStyle.capStyle());
strokeData.setLineJoin(svgStyle.joinStyle());
strokeData.setMiterLimit(svgStyle.strokeMiterLimit());
« no previous file with comments | « Source/core/layout/svg/LayoutSVGText.cpp ('k') | Source/core/layout/svg/SVGLayoutTreeAsText.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698