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

Unified Diff: tools/dom/templates/html/impl/impl_CSSStyleDeclaration.darttemplate

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:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sdk/lib/html/dartium/html_dartium.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/dom/templates/html/impl/impl_CSSStyleDeclaration.darttemplate
diff --git a/tools/dom/templates/html/impl/impl_CSSStyleDeclaration.darttemplate b/tools/dom/templates/html/impl/impl_CSSStyleDeclaration.darttemplate
index c0120c2e24c036cbeac620677f8f4406b69da194..61bcde9d4086d05c4a51afa22ad72f244820f1b6 100644
--- a/tools/dom/templates/html/impl/impl_CSSStyleDeclaration.darttemplate
+++ b/tools/dom/templates/html/impl/impl_CSSStyleDeclaration.darttemplate
@@ -1222,12 +1222,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/dartium/html_dartium.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698