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

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

Issue 2753013004: Apply SVG styles paint-order, stroke-linejoin, and stroke-linecap on DOM text
Patch Set: Apply SVG styles paint-order, stroke-linejoin, and stroke-linecap on DOM text Created 3 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
Index: third_party/WebKit/Source/core/layout/svg/SVGLayoutTreeAsText.cpp
diff --git a/third_party/WebKit/Source/core/layout/svg/SVGLayoutTreeAsText.cpp b/third_party/WebKit/Source/core/layout/svg/SVGLayoutTreeAsText.cpp
index 8907cbac4f072df3e9c49b627ede9d91c2b82791..7c5a5d355ea0cd2693c7fd412265a252a16d60b5 100644
--- a/third_party/WebKit/Source/core/layout/svg/SVGLayoutTreeAsText.cpp
+++ b/third_party/WebKit/Source/core/layout/svg/SVGLayoutTreeAsText.cpp
@@ -290,15 +290,15 @@ static void writeStyle(TextStream& ts, const LayoutObject& object) {
SVGLengthContext lengthContext(shape.element());
double dashOffset =
lengthContext.valueForLength(svgStyle.strokeDashOffset(), style);
- double strokeWidth = lengthContext.valueForLength(svgStyle.strokeWidth());
+ double strokeWidth = lengthContext.valueForLength(style.strokeWidth());
DashArray dashArray = SVGLayoutSupport::resolveSVGDashArray(
*svgStyle.strokeDashArray(), style, lengthContext);
writeIfNotDefault(ts, "opacity", svgStyle.strokeOpacity(), 1.0f);
writeIfNotDefault(ts, "stroke width", strokeWidth, 1.0);
writeIfNotDefault(ts, "miter limit", svgStyle.strokeMiterLimit(), 4.0f);
- writeIfNotDefault(ts, "line cap", svgStyle.capStyle(), ButtCap);
- writeIfNotDefault(ts, "line join", svgStyle.joinStyle(), MiterJoin);
+ writeIfNotDefault(ts, "line cap", style.capStyle(), ButtCap);
+ writeIfNotDefault(ts, "line join", style.joinStyle(), MiterJoin);
writeIfNotDefault(ts, "dash offset", dashOffset, 0.0);
if (!dashArray.isEmpty())
writeNameValuePair(ts, "dash array", dashArray);

Powered by Google App Engine
This is Rietveld 408576698