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

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
« no previous file with comments | « lib/html/scripts/systemhtml.py ('k') | tests/html/cssstyledeclaration_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/html/templates/html/impl/impl_CSSStyleDeclaration.darttemplate
===================================================================
--- lib/html/templates/html/impl/impl_CSSStyleDeclaration.darttemplate (revision 13188)
+++ lib/html/templates/html/impl/impl_CSSStyleDeclaration.darttemplate (working copy)
@@ -24,6 +24,15 @@
$!MEMBERS
$if DART2JS
+ String getPropertyValue(String propertyName) {
+ var propValue = JS('Object', '#.getPropertyValue(#)', this, propertyName);
+ if (propValue == null) {
+ return '';
+ } else {
+ return propValue;
+ }
+ }
+
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.
« no previous file with comments | « lib/html/scripts/systemhtml.py ('k') | tests/html/cssstyledeclaration_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698