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

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

Issue 11065014: Override CSSStyleDeclaration.getPropertyValue in general way. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 2 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: 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 ddb804aef1c96e3fd1417fe1bef85d4fbac9a90d..c4c066dce24ae355b2126aad1e80e6ec1fa30009 100644
--- a/lib/html/templates/html/impl/impl_CSSStyleDeclaration.darttemplate
+++ b/lib/html/templates/html/impl/impl_CSSStyleDeclaration.darttemplate
@@ -23,16 +23,12 @@ class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC {
$!MEMBERS
-$if DART2JS
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 : '';
}
+$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.

Powered by Google App Engine
This is Rietveld 408576698