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

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

Issue 302753005: 1985 no longer supports webkitBackingStorePixelRatio on CanvasRenderingContext2D (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Added @deprecated Created 6 years, 7 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
« no previous file with comments | « sdk/lib/_blink/dartium/_blink_dartium.dart ('k') | 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 4f8df2eebe0fbaa923c8c5969732df830eda2688..84ebc80eeacff04e78e7e5dd16dea8a8a9dc4090 100644
--- a/sdk/lib/html/dart2js/html_dart2js.dart
+++ b/sdk/lib/html/dart2js/html_dart2js.dart
@@ -1502,23 +1502,6 @@ class CanvasRenderingContext2D extends CanvasRenderingContext native "CanvasRend
@DocsEditable()
String textBaseline;
- @JSName('webkitBackingStorePixelRatio')
- /**
- * The ratio between this canvas' backing store dimensions and the canvas'
- * logical dimensions.
- *
- * ## Other resources
- *
- * * [High DPI Canvas tutorial]
- * (http://www.html5rocks.com/en/tutorials/canvas/hidpi/) from HTML5Rocks.
- */
- @DomName('CanvasRenderingContext2D.webkitBackingStorePixelRatio')
- @DocsEditable()
- @SupportedBrowser(SupportedBrowser.CHROME)
- @SupportedBrowser(SupportedBrowser.SAFARI)
- @Experimental()
- final double backingStorePixelRatio;
-
@JSName('arc')
@DomName('CanvasRenderingContext2D.arc')
@DocsEditable()
@@ -2058,6 +2041,11 @@ class CanvasRenderingContext2D extends CanvasRenderingContext native "CanvasRend
void fill([String winding = 'nonzero']) {
JS('void', '#.fill(#)', this, winding);
}
+
+ /** Deprecated always returns 1.0 */
+ @DomName('CanvasRenderingContext2D.webkitBackingStorePixelRation')
+ @Experimental()
+ double get backingStorePixelRatio => 1.0;
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
« no previous file with comments | « sdk/lib/_blink/dartium/_blink_dartium.dart ('k') | sdk/lib/html/dartium/html_dartium.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698