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

Unified Diff: third_party/WebKit/Source/core/layout/svg/LayoutSVGPath.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/LayoutSVGPath.cpp
diff --git a/third_party/WebKit/Source/core/layout/svg/LayoutSVGPath.cpp b/third_party/WebKit/Source/core/layout/svg/LayoutSVGPath.cpp
index a11a7fa92fce999ef9ed63f938d72a32a4bb369e..a6754ebdd49fb3ad2fbdaeab099a42268f3a0efd 100644
--- a/third_party/WebKit/Source/core/layout/svg/LayoutSVGPath.cpp
+++ b/third_party/WebKit/Source/core/layout/svg/LayoutSVGPath.cpp
@@ -65,13 +65,13 @@ FloatRect LayoutSVGPath::hitTestStrokeBoundingBox() const {
float delta = strokeWidth / 2;
- if (svgStyle.hasMiterJoinStyle()) {
+ if (style()->hasMiterJoinStyle()) {
const float miter = svgStyle.strokeMiterLimit();
- if (miter < M_SQRT2 && svgStyle.hasSquareCapStyle())
+ if (miter < M_SQRT2 && style()->hasSquareCapStyle())
delta *= M_SQRT2;
else
delta *= miter;
- } else if (svgStyle.hasSquareCapStyle()) {
+ } else if (style()->hasSquareCapStyle()) {
delta *= M_SQRT2;
}

Powered by Google App Engine
This is Rietveld 408576698