Bug 944704, part 2 - Update the Mozilla callers of Moz2D's ArcToBezier for its new signature. r=Bas
authorJonathan Watt <jwatt@jwatt.org>
Fri, 13 Dec 2013 12:14:36 +0000
changeset 160334 756ce0d34c9fb68331915ca6c2cfef22cdb3277b
parent 160333 15e0c5ced15510aa8ef8695049d53cf44f6baee7
child 160335 53ddb97448dc4441ca668e857f5fdf6595ebb27b
push id37562
push userjwatt@jwatt.org
push dateFri, 13 Dec 2013 12:14:50 +0000
treeherdermozilla-inbound@53ddb97448dc [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersBas
bugs944704
milestone29.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 944704, part 2 - Update the Mozilla callers of Moz2D's ArcToBezier for its new signature. r=Bas
content/canvas/src/CanvasRenderingContext2D.cpp
--- a/content/canvas/src/CanvasRenderingContext2D.cpp
+++ b/content/canvas/src/CanvasRenderingContext2D.cpp
@@ -1885,17 +1885,17 @@ CanvasRenderingContext2D::Arc(double x, 
 {
   if (r < 0.0) {
     error.Throw(NS_ERROR_DOM_INDEX_SIZE_ERR);
     return;
   }
 
   EnsureWritablePath();
 
-  ArcToBezier(this, Point(x, y), r, startAngle, endAngle, anticlockwise);
+  ArcToBezier(this, Point(x, y), Size(r, r), startAngle, endAngle, anticlockwise);
 }
 
 void
 CanvasRenderingContext2D::Rect(double x, double y, double w, double h)
 {
   EnsureWritablePath();
 
   if (mPathBuilder) {