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

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

Issue 19853002: Only Firefox needs the vendor prefix. All other browsers have both (webkit browsers) or the unprefi… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 5 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 aaa64e5d9fc99a7cd2c830dca21ba8a46e20972e..984f10d488dc72090da58ce0bfdccd9eed6f7568 100644
--- a/tools/dom/templates/html/impl/impl_CSSStyleDeclaration.darttemplate
+++ b/tools/dom/templates/html/impl/impl_CSSStyleDeclaration.darttemplate
@@ -918,12 +918,17 @@ $endif
}
/** Gets the value of "box-sizing" */
- String get boxSizing =>
- getPropertyValue('${Device.cssPrefix}box-sizing');
+ String get boxSizing => Device.isFirefox ?
+ getPropertyValue('${Device.cssPrefix}box-sizing') :
+ getPropertyValue('box-sizing');
/** Sets the value of "box-sizing" */
void set boxSizing(String value) {
- setProperty('${Device.cssPrefix}box-sizing', value, '');
+ if (Device.isFirefox) {
Jennifer Messerly 2013/07/19 21:09:20 presumably Firefox will implement this natively so
+ setProperty('${Device.cssPrefix}box-sizing', value, '');
+ } else {
+ setProperty('box-sizing', value, '');
+ }
}
/** Gets the value of "caption-side" */
« 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