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

Unified Diff: lib/html/dart2js/html_dart2js.dart

Side-by-side diff isn't available for this file because of its large size.
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:
Download patch
« no previous file with comments | « no previous file | lib/html/scripts/systemhtml.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/html/dart2js/html_dart2js.dart
===================================================================
--- lib/html/dart2js/html_dart2js.dart (revision 13149)
+++ lib/html/dart2js/html_dart2js.dart (working copy)
@@ -4334,8 +4334,6 @@
String getPropertyShorthand(String propertyName) native;
- String getPropertyValue(String propertyName) native;
-
bool isPropertyImplicit(String propertyName) native;
String item(int index) native;
@@ -4343,6 +4341,14 @@
String removeProperty(String propertyName) native;
+ String getPropertyValue(String propertyName) {
+ if (JS('bool', '!#.getPropertyValue(#)', this, propertyName)) {
blois 2012/10/03 00:56:47 This is getting the property value twice- should p
+ 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.
« no previous file with comments | « no previous file | lib/html/scripts/systemhtml.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698