Index: tools/dom/scripts/css_code_generator.py |
diff --git a/tools/dom/scripts/css_code_generator.py b/tools/dom/scripts/css_code_generator.py |
index f505e808b860e8aa45ec55292d6ffb78c972856d..b3b9f21ee0b2eb4945981d06ba3fdc7fd60bbdd8 100644 |
--- a/tools/dom/scripts/css_code_generator.py |
+++ b/tools/dom/scripts/css_code_generator.py |
@@ -107,7 +107,7 @@ $(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME $EXTENDS with |
factory $CLASSNAME() => new CssStyleDeclaration.css(''); |
factory $CLASSNAME.css(String css) { |
- final style = new DivElement().style; |
+ final style = new Element.tag('div').style; |
style.cssText = css; |
return style; |
} |