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

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

Issue 18500010: Make type parameter in toDataUrl have an optional default value as per the spec. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 6 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:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | sdk/lib/html/dartium/html_dartium.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 20a57082b43f1cbace3fb1c426058a4d68d834f9..f5ed20735ff73a8f7a45a9c1000d290119521ab0 100644
--- a/sdk/lib/html/dart2js/html_dart2js.dart
+++ b/sdk/lib/html/dart2js/html_dart2js.dart
@@ -906,7 +906,7 @@ class CanvasElement extends _HTMLElement implements CanvasImageSource native "HT
*/
@DomName('HTMLCanvasElement.toDataURL')
@DocsEditable()
- String toDataUrl(String type, [num quality]) native;
+ String $dom_toDataUrl(String type, [num quality]) native;
@DomName('HTMLCanvasElement.onwebglcontextlost')
@DocsEditable()
@@ -943,6 +943,9 @@ class CanvasElement extends _HTMLElement implements CanvasImageSource native "HT
}
return context;
}
+
+ String toDataUrl([String type = 'image/png', num quality]) =>
+ $dom_toDataUrl(type, quality);
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
« no previous file with comments | « no previous file | sdk/lib/html/dartium/html_dartium.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698