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

Unified Diff: lib/html/templates/html/impl/impl_CSSStyleDeclaration.darttemplate

Issue 10908269: Fixing up setting styles to invalidate on IE9. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fixing CSSStyleDeclaration on dartium (duplicate setProperty). Created 8 years, 3 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 | « lib/html/scripts/systemhtml.py ('k') | tests/html/cssstyledeclaration_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/html/templates/html/impl/impl_CSSStyleDeclaration.darttemplate
diff --git a/lib/html/templates/html/impl/impl_CSSStyleDeclaration.darttemplate b/lib/html/templates/html/impl/impl_CSSStyleDeclaration.darttemplate
index d928c1d05715c1967132518f4121e1a01da83942..45993d720015745d5f3e2980c1d2270baa4a8249 100644
--- a/lib/html/templates/html/impl/impl_CSSStyleDeclaration.darttemplate
+++ b/lib/html/templates/html/impl/impl_CSSStyleDeclaration.darttemplate
@@ -23,6 +23,16 @@ class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC {
$!MEMBERS
+$if DART2JS
+ void setProperty(String propertyName, String value, [String priority]) native '''
+ this.setProperty(propertyName, value, priority);
+ // Bug #2772, IE9 requires a poke to actually apply the value.
+ if (this.setAttribute) {
+ this.setAttribute(propertyName, value);
+ }
+ ''';
+$endif
+
// TODO(jacobr): generate this list of properties using the existing script.
/** Gets the value of "animation" */
String get animation =>
« no previous file with comments | « lib/html/scripts/systemhtml.py ('k') | tests/html/cssstyledeclaration_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698