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

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

Issue 10905130: Adding IE support to browser prefixes. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Removing test exceptions from html.status. Created 8 years, 3 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
« no previous file with comments | « no previous file | lib/html/dart2js/html_dart2js.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 String _cachedBrowserPrefix; 5 String _cachedBrowserPrefix;
6 6
7 String get _browserPrefix() { 7 String get _browserPrefix() {
8 if (_cachedBrowserPrefix === null) { 8 if (_cachedBrowserPrefix === null) {
9 if (_Device.isFirefox) { 9 if (_Device.isFirefox) {
10 _cachedBrowserPrefix = '-moz-'; 10 _cachedBrowserPrefix = '-moz-';
11 } else if (_Device.isIE) {
12 _cachedBrowserPrefix = '-ms-';
13 } else if (_Device.isOpera) {
14 _cachedBrowserPrefix = '-o-';
11 } else { 15 } else {
12 _cachedBrowserPrefix = '-webkit-'; 16 _cachedBrowserPrefix = '-webkit-';
13 } 17 }
14 // TODO(jacobr): support IE 9.0 and Opera as well.
15 } 18 }
16 return _cachedBrowserPrefix; 19 return _cachedBrowserPrefix;
17 } 20 }
18 21
19 class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC { 22 class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC {
20 23
21 $!MEMBERS 24 $!MEMBERS
22 25
23 // TODO(jacobr): generate this list of properties using the existing script. 26 // TODO(jacobr): generate this list of properties using the existing script.
24 /** Gets the value of "animation" */ 27 /** Gets the value of "animation" */
(...skipping 2752 matching lines...) Expand 10 before | Expand all | Expand 10 after
2777 2780
2778 /** Gets the value of "zoom" */ 2781 /** Gets the value of "zoom" */
2779 String get zoom() => 2782 String get zoom() =>
2780 getPropertyValue('zoom'); 2783 getPropertyValue('zoom');
2781 2784
2782 /** Sets the value of "zoom" */ 2785 /** Sets the value of "zoom" */
2783 void set zoom(var value) { 2786 void set zoom(var value) {
2784 setProperty('zoom', value, ''); 2787 setProperty('zoom', value, '');
2785 } 2788 }
2786 } 2789 }
OLDNEW
« no previous file with comments | « no previous file | lib/html/dart2js/html_dart2js.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698