Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(181)

Unified Diff: sdk/lib/html/dart2js/html_dart2js.dart

Issue 27983005: Make getLineDash return [] instead of null if it has not yet been set. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
Download patch
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 fcfeafc96e23a253ac2faaf08deb0f86d9f2e559..31a01ed56029bd2910ffee3cab1aa4a169d8a942 100644
--- a/sdk/lib/html/dart2js/html_dart2js.dart
+++ b/sdk/lib/html/dart2js/html_dart2js.dart
@@ -1383,9 +1383,10 @@ class CanvasRenderingContext2D extends CanvasRenderingContext native "CanvasRend
@Creates('ImageData|=Object')
_getImageData_1(sx, sy, sw, sh) native;
+ @JSName('getLineDash')
@DomName('CanvasRenderingContext2D.getLineDash')
@DocsEditable()
- List<num> getLineDash() native;
+ List<num> _getLineDash() native;
@DomName('CanvasRenderingContext2D.isPointInPath')
@DocsEditable()
@@ -1747,6 +1748,9 @@ class CanvasRenderingContext2D extends CanvasRenderingContext native "CanvasRend
'typeof #.lineDashOffset != "undefined" ? #.lineDashOffset = # : '
'#.webkitLineDashOffset = #', this, this, value, this, value);
+ @DomName('CanvasRenderingContext2D.getLineDash')
+ List<num> getLineDash() => _getLineDash();
+
/**
* Draws text to the canvas.
*
« no previous file with comments | « no previous file | sdk/lib/html/dartium/html_dartium.dart » ('j') | tests/html/canvasrenderingcontext2d_test.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698