Bug 617634 - SVGPathData::GetMarkerPositioningData checks for PATHSEG_CURVETO_QUADRATIC_ABS instead of PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS. r=longsonr, a=blocking
authorJonathan Watt <jwatt@jwatt.org>
Wed, 08 Dec 2010 20:12:12 +0000
changeset 59502 9b7157931d79e4ad870a417290c59ffc4a781ad0
parent 59501 a7dea879b4b445a23186f438900562155bb39e99
child 59503 faf8830820a800f0188b12911738b595ded0beaa
push id1
push usershaver@mozilla.com
push dateTue, 04 Jan 2011 17:58:04 +0000
reviewerslongsonr, blocking
bugs617634
milestone2.0b9pre
Bug 617634 - SVGPathData::GetMarkerPositioningData checks for PATHSEG_CURVETO_QUADRATIC_ABS instead of PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS. r=longsonr, a=blocking
content/svg/content/src/SVGPathData.cpp
--- a/content/svg/content/src/SVGPathData.cpp
+++ b/content/svg/content/src/SVGPathData.cpp
@@ -683,17 +683,17 @@ SVGPathData::GetMarkerPositioningData(ns
       segStartAngle = AngleOfVector(cp1 - segStart);
       segEndAngle = AngleOfVector(segEnd - cp2);
       i += 4;
       break;
 
     case nsIDOMSVGPathSeg::PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS:
     case nsIDOMSVGPathSeg::PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL:
       cp1 = SVGPathSegUtils::IsQuadraticType(prevSegType) ? segStart * 2 - prevCP : segStart;
-      if (segType == nsIDOMSVGPathSeg::PATHSEG_CURVETO_QUADRATIC_ABS) {
+      if (segType == nsIDOMSVGPathSeg::PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS) {
         segEnd = gfxPoint(mData[i], mData[i+1]);
       } else {
         segEnd = segStart + gfxPoint(mData[i], mData[i+1]);
       }
       prevCP = cp1;
       segStartAngle = AngleOfVector(cp1 - segStart);
       segEndAngle = AngleOfVector(segEnd - cp1);
       i += 2;