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

Unified Diff: third_party/WebKit/Source/core/paint/SVGShapePainter.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/paint/SVGShapePainter.cpp
diff --git a/third_party/WebKit/Source/core/paint/SVGShapePainter.cpp b/third_party/WebKit/Source/core/paint/SVGShapePainter.cpp
index 09c7b1cf7abd3599d22abadc69257c1948fffa0f..2fc81780e405c1276ce4f0994d59e33edaa696a1 100644
--- a/third_party/WebKit/Source/core/paint/SVGShapePainter.cpp
+++ b/third_party/WebKit/Source/core/paint/SVGShapePainter.cpp
@@ -73,7 +73,7 @@ void SVGShapePainter::paint(const PaintInfo& paintInfo) {
svgStyle.shapeRendering() != SR_OPTIMIZESPEED;
for (int i = 0; i < 3; i++) {
- switch (svgStyle.paintOrderType(i)) {
+ switch (m_layoutSVGShape.style()->paintOrderType(i)) {
case PT_FILL: {
PaintFlags fillFlags;
if (!SVGPaintContext::paintForLayoutObject(
@@ -86,7 +86,7 @@ void SVGShapePainter::paint(const PaintInfo& paintInfo) {
break;
}
case PT_STROKE:
- if (svgStyle.hasVisibleStroke()) {
+ if (m_layoutSVGShape.style()->hasVisibleStroke()) {
GraphicsContextStateSaver stateSaver(
paintContext.paintInfo().context, false);
AffineTransform nonScalingTransform;
@@ -176,7 +176,7 @@ void SVGShapePainter::fillShape(GraphicsContext& context,
void SVGShapePainter::strokeShape(GraphicsContext& context,
const PaintFlags& flags) {
- if (!m_layoutSVGShape.style()->svgStyle().hasVisibleStroke())
+ if (!m_layoutSVGShape.style()->hasVisibleStroke())
return;
switch (m_layoutSVGShape.geometryCodePath()) {
« no previous file with comments | « third_party/WebKit/Source/core/paint/SVGInlineTextBoxPainter.cpp ('k') | third_party/WebKit/Source/core/style/ComputedStyle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698