Index: sdk/lib/html/dart2js/html_dart2js.dart |
diff --git a/sdk/lib/html/dart2js/html_dart2js.dart b/sdk/lib/html/dart2js/html_dart2js.dart |
index fdd1df8b008e77ef5a4ea6cd91f3eab296d4a3ff..62b4f1c63cd2cdbb00fc2e92ab668029be3bf765 100644 |
--- a/sdk/lib/html/dart2js/html_dart2js.dart |
+++ b/sdk/lib/html/dart2js/html_dart2js.dart |
@@ -1197,9 +1197,10 @@ class CanvasRenderingContext2D extends CanvasRenderingContext native "*CanvasRen |
@Experimental |
List lineDash; |
+ @JSName('arc') |
@DomName('CanvasRenderingContext2D.arc') |
@DocsEditable |
- void arc(num x, num y, num radius, num startAngle, num endAngle, bool anticlockwise) native; |
+ void $dom_arc(num x, num y, num radius, num startAngle, num endAngle, bool anticlockwise) native; |
@DomName('CanvasRenderingContext2D.arcTo') |
@DocsEditable |
@@ -1473,6 +1474,13 @@ class CanvasRenderingContext2D extends CanvasRenderingContext native "*CanvasRen |
this.strokeStyle = 'hsla($h, $s%, $l%, $a)'; |
} |
+ @DomName('CanvasRenderingContext2D.arc') |
+ void arc(num x, num y, num radius, num startAngle, num endAngle, |
+ [bool anticlockwise: false]) { |
+ $dom_arc(x, y, radius, startAngle, endAngle, anticlockwise); |
+ } |
+ |
+ |
@DomName('CanvasRenderingContext2D.lineDashOffset') |
num get lineDashOffset => JS('num', |
'#.lineDashOffset || #.webkitLineDashOffset', this, this); |