Bug 691137: Use proper coordinates when adding a device space quadratic curve. r=roc, a=LegNeato
authorBas Schouten <bschouten@mozilla.com>
Tue, 11 Oct 2011 02:35:52 +0200
changeset 79107 5016fa65673eb36c50b4c8fd38b0f6c79fefca58
parent 79106 54a04805efe1a733cb71b6808b9c1de3d873beb4
child 79108 b0f0d24a20e52344c19fc11a11c4b649fbaa404d
push id78
push userclegnitto@mozilla.com
push dateFri, 16 Dec 2011 17:32:24 +0000
treeherdermozilla-release@79d24e644fdd [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersroc, LegNeato
bugs691137
milestone9.0a2
Bug 691137: Use proper coordinates when adding a device space quadratic curve. r=roc, a=LegNeato
content/canvas/src/nsCanvasRenderingContext2DAzure.cpp
--- a/content/canvas/src/nsCanvasRenderingContext2DAzure.cpp
+++ b/content/canvas/src/nsCanvasRenderingContext2DAzure.cpp
@@ -2330,17 +2330,17 @@ nsCanvasRenderingContext2DAzure::Quadrat
   }
 
   EnsureWritablePath();
 
   if (mPathBuilder) {
     mPathBuilder->QuadraticBezierTo(Point(cpx, cpy), Point(x, y));
   } else {
     Matrix transform = mTarget->GetTransform();
-    mDSPathBuilder->QuadraticBezierTo(transform * Point(cpx, cpy), transform * Point(cpx, cpy));
+    mDSPathBuilder->QuadraticBezierTo(transform * Point(cpx, cpy), transform * Point(x, y));
   }
 
   return NS_OK;
 }
 
 NS_IMETHODIMP
 nsCanvasRenderingContext2DAzure::BezierCurveTo(float cp1x, float cp1y,
                                               float cp2x, float cp2y,