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

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

Issue 306103004: Updated flex CSS prefix for Firefox. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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 84ebc80eeacff04e78e7e5dd16dea8a8a9dc4090..04dfad6968e46894c4dbb7bc8726300a0da820ee 100644
--- a/sdk/lib/html/dart2js/html_dart2js.dart
+++ b/sdk/lib/html/dart2js/html_dart2js.dart
@@ -2045,6 +2045,7 @@ class CanvasRenderingContext2D extends CanvasRenderingContext native "CanvasRend
/** Deprecated always returns 1.0 */
@DomName('CanvasRenderingContext2D.webkitBackingStorePixelRation')
@Experimental()
+ @deprecated
double get backingStorePixelRatio => 1.0;
}
@@ -4026,12 +4027,17 @@ abstract class CssStyleDeclarationBase {
}
/** Gets the value of "flex" */
- String get flex =>
- getPropertyValue('${Device.cssPrefix}flex');
+ String get flex {
+ String prefix = Device.cssPrefix
+ if (Device.isFirefox) prefix = '';
+ return getPropertyValue('${prefix}flex');
+ }
/** Sets the value of "flex" */
void set flex(String value) {
- setProperty('${Device.cssPrefix}flex', value, '');
+ String prefix = Device.cssPrefix
+ if (Device.isFirefox) prefix = '';
+ setProperty('${prefix}flex', value, '');
}
/** Gets the value of "flex-basis" */
« 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