| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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 // WARNING: Do not edit. | 5 // WARNING: Do not edit. |
| 6 // This file was generated by html/scripts/css_code_generator.py | 6 // This file was generated by html/scripts/css_code_generator.py |
| 7 | 7 |
| 8 // Source of CSS properties: | 8 // Source of CSS properties: |
| 9 // Source/WebCore/css/CSSPropertyNames.in | 9 // Source/WebCore/css/CSSPropertyNames.in |
| 10 | 10 |
| 11 // TODO(jacobr): add versions that take numeric values in px, miliseconds, etc. | 11 // TODO(jacobr): add versions that take numeric values in px, miliseconds, etc. |
| 12 | 12 |
| 13 class CSSStyleDeclarationWrappingImplementation extends DOMWrapperBase implement
s CSSStyleDeclaration { | 13 class CSSStyleDeclarationWrappingImplementation extends DOMWrapperBase implement
s CSSStyleDeclaration { |
| 14 static String _cachedBrowserPrefix; | 14 static String _cachedBrowserPrefix; |
| 15 | 15 |
| 16 CSSStyleDeclarationWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | 16 CSSStyleDeclarationWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} |
| 17 | 17 |
| 18 factory CSSStyleDeclarationWrappingImplementation.css(String css) { | 18 factory CSSStyleDeclarationWrappingImplementation.css(String css) { |
| 19 var style = new Element.tag('div').style; | 19 var style = new Element.tag('div').style; |
| 20 style.cssText = css; | 20 style.cssText = css; |
| 21 return style; | 21 return style; |
| 22 } | 22 } |
| 23 | 23 |
| 24 factory CSSStyleDeclarationWrappingImplementation() { | 24 factory CSSStyleDeclarationWrappingImplementation() { |
| 25 return new CSSStyleDeclarationWrappingImplementation.css(""); | 25 return new CSSStyleDeclarationWrappingImplementation.css(''); |
| 26 } | 26 } |
| 27 | 27 |
| 28 static String get _browserPrefix() { | 28 static String get _browserPrefix() { |
| 29 if (_cachedBrowserPrefix === null) { | 29 if (_cachedBrowserPrefix === null) { |
| 30 if (_Device.isFirefox) { | 30 if (_Device.isFirefox) { |
| 31 _cachedBrowserPrefix = '-moz-'; | 31 _cachedBrowserPrefix = '-moz-'; |
| 32 } else { | 32 } else { |
| 33 _cachedBrowserPrefix = '-webkit-'; | 33 _cachedBrowserPrefix = '-webkit-'; |
| 34 } | 34 } |
| 35 // TODO(jacobr): support IE 9.0 and Opera as well. | 35 // TODO(jacobr): support IE 9.0 and Opera as well. |
| (...skipping 2800 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2836 | 2836 |
| 2837 /** Gets the value of "zoom" */ | 2837 /** Gets the value of "zoom" */ |
| 2838 String get zoom() => | 2838 String get zoom() => |
| 2839 getPropertyValue('zoom'); | 2839 getPropertyValue('zoom'); |
| 2840 | 2840 |
| 2841 /** Sets the value of "zoom" */ | 2841 /** Sets the value of "zoom" */ |
| 2842 void set zoom(String value) { | 2842 void set zoom(String value) { |
| 2843 setProperty('zoom', value, ''); | 2843 setProperty('zoom', value, ''); |
| 2844 } | 2844 } |
| 2845 } | 2845 } |
| OLD | NEW |