Index: Source/core/paint/SVGInlineTextBoxPainter.cpp |
diff --git a/Source/core/paint/SVGInlineTextBoxPainter.cpp b/Source/core/paint/SVGInlineTextBoxPainter.cpp |
index b6e2f150852b53880b12b3b681d0f9131ad04f11..24b99ad04279e55d81bce4f8994fb9fe1233b997 100644 |
--- a/Source/core/paint/SVGInlineTextBoxPainter.cpp |
+++ b/Source/core/paint/SVGInlineTextBoxPainter.cpp |
@@ -278,13 +278,14 @@ void SVGInlineTextBoxPainter::paintDecoration(const PaintInfo& paintInfo, TextDe |
break; |
case PT_STROKE: |
if (svgDecorationStyle.hasVisibleStroke()) { |
- // FIXME: Non-scaling stroke is not applied here. |
SkPaint strokePaint; |
if (!SVGPaintContext::paintForLayoutObject(paintInfo, decorationStyle, *decorationRenderer, ApplyToStrokeMode, strokePaint)) |
break; |
strokePaint.setAntiAlias(true); |
StrokeData strokeData; |
SVGLayoutSupport::applyStrokeStyleToStrokeData(strokeData, decorationStyle, *decorationRenderer); |
+ if (svgDecorationStyle.vectorEffect() == VE_NON_SCALING_STROKE) |
+ strokeData.setThickness(strokeData.thickness() / scalingFactor); |
strokeData.setupPaint(&strokePaint); |
paintInfo.context->drawPath(path.skPath(), strokePaint); |
} |