bug 915093 - don't ignore the context matrix when getting stroke pattern for SVG glyphs. r=roc
authorJonathan Kew <jkew@mozilla.com>
Thu, 12 Sep 2013 09:18:54 +0100
changeset 146767 3a27531afc85b22031e1ba6b7febdb9951b75a0b
parent 146766 bf930e7d61d388f864f9e22d5446d672dc0b5870
child 146768 749739c77f735172976c1daf9a077af3db60dc01
push id1
push userroot
push dateMon, 20 Oct 2014 17:29:22 +0000
reviewersroc
bugs915093
milestone26.0a1
bug 915093 - don't ignore the context matrix when getting stroke pattern for SVG glyphs. r=roc
layout/svg/nsSVGTextFrame2.cpp
--- a/layout/svg/nsSVGTextFrame2.cpp
+++ b/layout/svg/nsSVGTextFrame2.cpp
@@ -5415,19 +5415,16 @@ nsSVGTextFrame2::SetupCairoStroke(gfxCon
                                   SVGTextObjectPaint* aThisObjectPaint)
 {
   const nsStyleSVG *style = aFrame->StyleSVG();
   if (style->mStroke.mType == eStyleSVGPaintType_None) {
     aThisObjectPaint->SetStrokeOpacity(0.0f);
     return false;
   }
 
-  gfxContextMatrixAutoSaveRestore matrixRestore(aContext);
-  aContext->IdentityMatrix();
-
   nsSVGUtils::SetupCairoStrokeGeometry(aFrame, aContext, aOuterObjectPaint);
   float opacity = nsSVGUtils::GetOpacity(style->mStrokeOpacitySource,
                                          style->mStrokeOpacity,
                                          aOuterObjectPaint);
 
   SetupInheritablePaint(aContext, aFrame, opacity, aOuterObjectPaint,
                         aThisObjectPaint->mStrokePaint, &nsStyleSVG::mStroke,
                         nsSVGEffects::StrokeProperty());