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 // TODO(jacobr): use _Lists.dart to remove some of the duplicated | 7 // TODO(jacobr): use _Lists.dart to remove some of the duplicated |
8 // functionality. | 8 // functionality. |
9 class _ChildrenElementList implements List { | 9 class _ChildrenElementList implements List { |
10 // Raw Element. | 10 // Raw Element. |
(...skipping 975 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
986 } else if (JS('bool', '!!#.mozMatchesSelector', this)) { | 986 } else if (JS('bool', '!!#.mozMatchesSelector', this)) { |
987 return JS('bool', '#.mozMatchesSelector(#)', this, selectors); | 987 return JS('bool', '#.mozMatchesSelector(#)', this, selectors); |
988 } else if (JS('bool', '!!#.msMatchesSelector', this)) { | 988 } else if (JS('bool', '!!#.msMatchesSelector', this)) { |
989 return JS('bool', '#.msMatchesSelector(#)', this, selectors); | 989 return JS('bool', '#.msMatchesSelector(#)', this, selectors); |
990 } | 990 } |
991 throw new UnsupportedError("Not supported on this platform"); | 991 throw new UnsupportedError("Not supported on this platform"); |
992 } | 992 } |
993 $else | 993 $else |
994 $endif | 994 $endif |
995 | 995 |
996 /** | |
997 * Print out a String representation of this Element. By default, this is | |
998 * this Element's tagName. | |
999 */ | |
1000 String toString() => this.tagName; | |
1001 | |
1002 $!MEMBERS | 996 $!MEMBERS |
1003 } | 997 } |
1004 | 998 |
1005 final _START_TAG_REGEXP = new RegExp('<(\\w+)'); | 999 final _START_TAG_REGEXP = new RegExp('<(\\w+)'); |
1006 class _ElementFactoryProvider { | 1000 class _ElementFactoryProvider { |
1007 static const _CUSTOM_PARENT_TAG_MAP = const { | 1001 static const _CUSTOM_PARENT_TAG_MAP = const { |
1008 'body' : 'html', | 1002 'body' : 'html', |
1009 'head' : 'html', | 1003 'head' : 'html', |
1010 'caption' : 'table', | 1004 'caption' : 'table', |
1011 'td': 'tr', | 1005 'td': 'tr', |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1151 const ScrollAlignment._internal(this._value); | 1145 const ScrollAlignment._internal(this._value); |
1152 toString() => 'ScrollAlignment.$_value'; | 1146 toString() => 'ScrollAlignment.$_value'; |
1153 | 1147 |
1154 /// Attempt to align the element to the top of the scrollable area. | 1148 /// Attempt to align the element to the top of the scrollable area. |
1155 static const TOP = const ScrollAlignment._internal('TOP'); | 1149 static const TOP = const ScrollAlignment._internal('TOP'); |
1156 /// Attempt to center the element in the scrollable area. | 1150 /// Attempt to center the element in the scrollable area. |
1157 static const CENTER = const ScrollAlignment._internal('CENTER'); | 1151 static const CENTER = const ScrollAlignment._internal('CENTER'); |
1158 /// Attempt to align the element to the bottom of the scrollable area. | 1152 /// Attempt to align the element to the bottom of the scrollable area. |
1159 static const BOTTOM = const ScrollAlignment._internal('BOTTOM'); | 1153 static const BOTTOM = const ScrollAlignment._internal('BOTTOM'); |
1160 } | 1154 } |
OLD | NEW |