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

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

Issue 11047008: CSSStyleDeclaration.getPropertyValue returns empty string instead of null. (Closed) Base URL: http://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
===================================================================
--- lib/html/templates/html/impl/impl_CSSStyleDeclaration.darttemplate (revision 13149)
+++ lib/html/templates/html/impl/impl_CSSStyleDeclaration.darttemplate (working copy)
@@ -24,6 +24,14 @@
$!MEMBERS
$if DART2JS
+ String getPropertyValue(String propertyName) {
+ if (JS('bool', '!#.getPropertyValue(#)', this, propertyName)) {
+ return '';
+ } else {
+ return JS('String', '#.getPropertyValue(#)', this, propertyName);
+ }
+ }
+
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