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

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

Issue 16335012: Fixing some of the tests disabled from the chrome IDL roll. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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
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 90fb83ac978bd502f901f97e4479aed4574fb56a..bab80c9f549b70bfb4173ea7b17b64cd1153cb02 100644
--- a/tools/dom/templates/html/impl/impl_CSSStyleDeclaration.darttemplate
+++ b/tools/dom/templates/html/impl/impl_CSSStyleDeclaration.darttemplate
@@ -5,9 +5,13 @@
part of $LIBRARYNAME;
$(ANNOTATIONS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC {
- factory $CLASSNAME() => _$(CLASSNAME)FactoryProvider.create$CLASSNAME();
- factory $CLASSNAME.css(String css) =>
- _$(CLASSNAME)FactoryProvider.create$(CLASSNAME)_css(css);
+ factory $CLASSNAME() => new CssStyleDeclaration.css('');
+
+ factory $CLASSNAME.css(String css) {
+ final style = new Element.tag('div').style;
+ style.cssText = css;
+ return style;
+ }
$!MEMBERS

Powered by Google App Engine
This is Rietveld 408576698