Chromium Code Reviews| Index: lib/html/dart2js/html_dart2js.dart |
| diff --git a/lib/html/dart2js/html_dart2js.dart b/lib/html/dart2js/html_dart2js.dart |
| index daf6e9f2bd4d3297f67c603f436870f009198038..4b1510d04bb384e7c64a6d42b56267deb7f54a00 100644 |
| --- a/lib/html/dart2js/html_dart2js.dart |
| +++ b/lib/html/dart2js/html_dart2js.dart |
| @@ -2334,9 +2334,6 @@ abstract class CSSStyleDeclaration { |
| /** @domName CSSStyleDeclaration.getPropertyShorthand */ |
| String getPropertyShorthand(String propertyName); |
| - /** @domName CSSStyleDeclaration.getPropertyValue */ |
| - String getPropertyValue(String propertyName); |
| - |
| /** @domName CSSStyleDeclaration.isPropertyImplicit */ |
| bool isPropertyImplicit(String propertyName); |
| @@ -3136,6 +3133,8 @@ abstract class CSSStyleDeclaration { |
| /** Sets the value of "font-weight" */ |
| void set fontWeight(var value); |
| + String getPropertyValue(String propertyName); |
|
Emily Fortuna
2012/10/04 18:12:32
do we want to add the @domName comment to this fun
Anton Muhin
2012/10/04 18:20:02
That sounds like a very good thing to do, thanks a
|
| + |
| /** Gets the value of "height" */ |
| String get height; |
| @@ -4228,6 +4227,8 @@ class _CSSStyleDeclarationImpl implements CSSStyleDeclaration native "*CSSStyleD |
| String getPropertyShorthand(String propertyName) native; |
| + String _getPropertyValue(String propertyName) native "getPropertyValue"; |
| + |
| bool isPropertyImplicit(String propertyName) native; |
| String item(int index) native; |
| @@ -4236,12 +4237,8 @@ class _CSSStyleDeclarationImpl implements CSSStyleDeclaration native "*CSSStyleD |
| String getPropertyValue(String propertyName) { |
| - var propValue = JS('Object', '#.getPropertyValue(#)', this, propertyName); |
| - if (propValue == null) { |
| - return ''; |
| - } else { |
| - return propValue; |
| - } |
| + var propValue = _getPropertyValue(propertyName); |
| + return propValue != null ? propValue : ''; |
| } |
| void setProperty(String propertyName, String value, [String priority]) native ''' |