Chromium Code Reviews| Index: client/html/src/CSSStyleDeclarationWrappingImplementation.dart |
| diff --git a/client/html/src/CSSStyleDeclarationWrappingImplementation.dart b/client/html/src/CSSStyleDeclarationWrappingImplementation.dart |
| index f6d5577bf75bebcf54395ca218d5771f9607103a..6fa3045b0797eda259f7fc11d3dc3aba84e855df 100644 |
| --- a/client/html/src/CSSStyleDeclarationWrappingImplementation.dart |
| +++ b/client/html/src/CSSStyleDeclarationWrappingImplementation.dart |
| @@ -15,6 +15,16 @@ class CSSStyleDeclarationWrappingImplementation extends DOMWrapperBase implement |
| CSSStyleDeclarationWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} |
| + factory CSSStyleDeclarationWrappingImplementation.css(String css) { |
| + var style = new Element.tag('div').style; |
| + style.cssText = css; |
| + return style; |
| + } |
| + |
| + factory CSSStyleDeclarationWrappingImplementation() { |
| + return new CSSStyleDeclarationWrappingImplementation.css(""); |
|
Jacob
2011/10/25 23:45:51
"" --> ''
nweiz
2011/10/26 00:27:37
Done.
|
| + } |
| + |
| static String get _browserPrefix() { |
| if (_cachedBrowserPrefix === null) { |
| if (_Device.isFirefox) { |