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

Unified Diff: sdk/lib/html/dartium/html_dartium.dart

Side-by-side diff isn't available for this file because of its large size.
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, 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:
Download patch
Index: sdk/lib/html/dartium/html_dartium.dart
diff --git a/sdk/lib/html/dartium/html_dartium.dart b/sdk/lib/html/dartium/html_dartium.dart
index 565e521b2abee091f5ba1af846f8ab2a27b12e65..a3e3f9b6ffc047c4ba32be1ddfb18bac08d71aa4 100644
--- a/sdk/lib/html/dartium/html_dartium.dart
+++ b/sdk/lib/html/dartium/html_dartium.dart
@@ -2555,6 +2555,7 @@ class CanvasRenderingContext2D extends CanvasRenderingContext {
/** Deprecated always returns 1.0 */
@DomName('CanvasRenderingContext2D.webkitBackingStorePixelRation')
@Experimental()
+ @deprecated
double get backingStorePixelRatio => 1.0;
}
@@ -4634,12 +4635,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/html/dart2js/html_dart2js.dart ('k') | tools/dom/templates/html/impl/impl_CSSStyleDeclaration.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698