Chromium Code Reviews| OLD | NEW |
|---|---|
| 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_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC { | 7 $(ANNOTATIONS)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC { |
| 8 factory $CLASSNAME() => new CssStyleDeclaration.css(''); | 8 factory $CLASSNAME() => new CssStyleDeclaration.css(''); |
| 9 | 9 |
| 10 factory $CLASSNAME.css(String css) { | 10 factory $CLASSNAME.css(String css) { |
| (...skipping 900 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 911 /** Gets the value of "box-shadow" */ | 911 /** Gets the value of "box-shadow" */ |
| 912 String get boxShadow => | 912 String get boxShadow => |
| 913 getPropertyValue('box-shadow'); | 913 getPropertyValue('box-shadow'); |
| 914 | 914 |
| 915 /** Sets the value of "box-shadow" */ | 915 /** Sets the value of "box-shadow" */ |
| 916 void set boxShadow(String value) { | 916 void set boxShadow(String value) { |
| 917 setProperty('box-shadow', value, ''); | 917 setProperty('box-shadow', value, ''); |
| 918 } | 918 } |
| 919 | 919 |
| 920 /** Gets the value of "box-sizing" */ | 920 /** Gets the value of "box-sizing" */ |
| 921 String get boxSizing => | 921 String get boxSizing => Device.isFirefox ? |
| 922 getPropertyValue('${Device.cssPrefix}box-sizing'); | 922 getPropertyValue('${Device.cssPrefix}box-sizing') : |
| 923 getPropertyValue('box-sizing'); | |
| 923 | 924 |
| 924 /** Sets the value of "box-sizing" */ | 925 /** Sets the value of "box-sizing" */ |
| 925 void set boxSizing(String value) { | 926 void set boxSizing(String value) { |
| 926 setProperty('${Device.cssPrefix}box-sizing', value, ''); | 927 if (Device.isFirefox) { |
|
Jennifer Messerly
2013/07/19 21:09:20
presumably Firefox will implement this natively so
| |
| 928 setProperty('${Device.cssPrefix}box-sizing', value, ''); | |
| 929 } else { | |
| 930 setProperty('box-sizing', value, ''); | |
| 931 } | |
| 927 } | 932 } |
| 928 | 933 |
| 929 /** Gets the value of "caption-side" */ | 934 /** Gets the value of "caption-side" */ |
| 930 String get captionSide => | 935 String get captionSide => |
| 931 getPropertyValue('caption-side'); | 936 getPropertyValue('caption-side'); |
| 932 | 937 |
| 933 /** Sets the value of "caption-side" */ | 938 /** Sets the value of "caption-side" */ |
| 934 void set captionSide(String value) { | 939 void set captionSide(String value) { |
| 935 setProperty('caption-side', value, ''); | 940 setProperty('caption-side', value, ''); |
| 936 } | 941 } |
| (...skipping 2276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 3213 | 3218 |
| 3214 /** Gets the value of "zoom" */ | 3219 /** Gets the value of "zoom" */ |
| 3215 String get zoom => | 3220 String get zoom => |
| 3216 getPropertyValue('zoom'); | 3221 getPropertyValue('zoom'); |
| 3217 | 3222 |
| 3218 /** Sets the value of "zoom" */ | 3223 /** Sets the value of "zoom" */ |
| 3219 void set zoom(String value) { | 3224 void set zoom(String value) { |
| 3220 setProperty('zoom', value, ''); | 3225 setProperty('zoom', value, ''); |
| 3221 } | 3226 } |
| 3222 } | 3227 } |
| OLD | NEW |