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

Unified Diff: third_party/WebKit/Source/core/layout/svg/LayoutSVGShape.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/LayoutSVGShape.cpp
diff --git a/third_party/WebKit/Source/core/layout/svg/LayoutSVGShape.cpp b/third_party/WebKit/Source/core/layout/svg/LayoutSVGShape.cpp
index cb8752dfb0119036930112ff8c25291632843d67..346f27d81bd8593bbf516b1b8805b49381c017e4 100644
--- a/third_party/WebKit/Source/core/layout/svg/LayoutSVGShape.cpp
+++ b/third_party/WebKit/Source/core/layout/svg/LayoutSVGShape.cpp
@@ -48,9 +48,9 @@ namespace blink {
bool LayoutSVGShape::adjustVisualRectForRasterEffects(
LayoutRect& visualRect) const {
// Account for raster expansions due to SVG stroke hairline raster effects.
- if (!visualRect.isEmpty() && styleRef().svgStyle().hasVisibleStroke()) {
+ if (!visualRect.isEmpty() && styleRef().hasVisibleStroke()) {
LayoutUnit pad(0.5f);
- if (styleRef().svgStyle().capStyle() != ButtCap)
+ if (styleRef().capStyle() != ButtCap)
pad += 0.5f;
visualRect.inflate(pad);
return true;
@@ -327,7 +327,7 @@ FloatRect LayoutSVGShape::calculateStrokeBoundingBox() const {
float LayoutSVGShape::strokeWidth() const {
SVGLengthContext lengthContext(element());
- return lengthContext.valueForLength(style()->svgStyle().strokeWidth());
+ return lengthContext.valueForLength(style()->strokeWidth());
}
LayoutSVGShapeRareData& LayoutSVGShape::ensureRareData() const {

Powered by Google App Engine
This is Rietveld 408576698