OLD | NEW |
1 | 1 |
2 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 2 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file |
3 // for details. All rights reserved. Use of this source code is governed by a | 3 // for details. All rights reserved. Use of this source code is governed by a |
4 // BSD-style license that can be found in the LICENSE file. | 4 // BSD-style license that can be found in the LICENSE file. |
5 | 5 |
6 // WARNING: DO NOT EDIT THIS TEMPLATE FILE. | 6 // WARNING: DO NOT EDIT THIS TEMPLATE FILE. |
7 // The template file was generated by scripts/css_code_generator.py | 7 // The template file was generated by scripts/css_code_generator.py |
8 | 8 |
9 // Source of CSS properties: | 9 // Source of CSS properties: |
10 // CSSPropertyNames.in | 10 // CSSPropertyNames.in |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 // to distinguish between property not being present in the browser and | 55 // to distinguish between property not being present in the browser and |
56 // not having a value at all. (Ultimately we'll want the native method to | 56 // not having a value at all. (Ultimately we'll want the native method to |
57 // return null if the property doesn't exist and empty string if it's | 57 // return null if the property doesn't exist and empty string if it's |
58 // defined but just doesn't have a value. | 58 // defined but just doesn't have a value. |
59 return _hasProperty(propertyName); | 59 return _hasProperty(propertyName); |
60 $endif | 60 $endif |
61 } | 61 } |
62 $if DARTIUM | 62 $if DARTIUM |
63 | 63 |
64 bool _hasProperty(String propertyName) => | 64 bool _hasProperty(String propertyName) => |
65 _blink.BlinkCSSStyleDeclaration.$__propertyQuery___Callback(this, property
Name); | 65 _blink.BlinkCSSStyleDeclaration.$__propertyQuery___Callback_DOMString(this
, propertyName); |
66 $endif | 66 $endif |
67 | 67 |
68 @DomName('CSSStyleDeclaration.setProperty') | 68 @DomName('CSSStyleDeclaration.setProperty') |
69 void setProperty(String propertyName, String value, [String priority]) { | 69 void setProperty(String propertyName, String value, [String priority]) { |
70 if (_supportsProperty(_camelCase(propertyName))) { | 70 if (_supportsProperty(_camelCase(propertyName))) { |
71 return _setPropertyHelper(propertyName, value, priority); | 71 return _setPropertyHelper(propertyName, value, priority); |
72 } else { | 72 } else { |
73 return _setPropertyHelper(Device.cssPrefix + propertyName, value, | 73 return _setPropertyHelper(Device.cssPrefix + propertyName, value, |
74 priority); | 74 priority); |
75 } | 75 } |
(...skipping 3157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3233 | 3233 |
3234 /** Gets the value of "zoom" */ | 3234 /** Gets the value of "zoom" */ |
3235 String get zoom => | 3235 String get zoom => |
3236 getPropertyValue('zoom'); | 3236 getPropertyValue('zoom'); |
3237 | 3237 |
3238 /** Sets the value of "zoom" */ | 3238 /** Sets the value of "zoom" */ |
3239 void set zoom(String value) { | 3239 void set zoom(String value) { |
3240 setProperty('zoom', value, ''); | 3240 setProperty('zoom', value, ''); |
3241 } | 3241 } |
3242 } | 3242 } |
OLD | NEW |