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

Side by Side Diff: tools/dom/templates/html/impl/impl_CSSStyleDeclaration.darttemplate

Issue 16335012: Fixing some of the tests disabled from the chrome IDL roll. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 part of $LIBRARYNAME; 5 part of $LIBRARYNAME;
6 6
7 $(ANNOTATIONS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC { 7 $(ANNOTATIONS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC {
8 factory $CLASSNAME() => _$(CLASSNAME)FactoryProvider.create$CLASSNAME(); 8 factory $CLASSNAME() => new CssStyleDeclaration.css('');
9 factory $CLASSNAME.css(String css) => 9
10 _$(CLASSNAME)FactoryProvider.create$(CLASSNAME)_css(css); 10 factory $CLASSNAME.css(String css) {
11 final style = new Element.tag('div').style;
12 style.cssText = css;
13 return style;
14 }
11 15
12 $!MEMBERS 16 $!MEMBERS
13 17
14 String getPropertyValue(String propertyName) { 18 String getPropertyValue(String propertyName) {
15 var propValue = _getPropertyValue(propertyName); 19 var propValue = _getPropertyValue(propertyName);
16 return propValue != null ? propValue : ''; 20 return propValue != null ? propValue : '';
17 } 21 }
18 22
19 $if DART2JS 23 $if DART2JS
20 @DomName('CSSStyleDeclaration.setProperty') 24 @DomName('CSSStyleDeclaration.setProperty')
(...skipping 3188 matching lines...) Expand 10 before | Expand all | Expand 10 after
3209 3213
3210 /** Gets the value of "zoom" */ 3214 /** Gets the value of "zoom" */
3211 String get zoom => 3215 String get zoom =>
3212 getPropertyValue('zoom'); 3216 getPropertyValue('zoom');
3213 3217
3214 /** Sets the value of "zoom" */ 3218 /** Sets the value of "zoom" */
3215 void set zoom(String value) { 3219 void set zoom(String value) {
3216 setProperty('zoom', value, ''); 3220 setProperty('zoom', value, '');
3217 } 3221 }
3218 } 3222 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698