| 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 class _ChildrenElementList extends ListBase<Element> { | 7 class _ChildrenElementList extends ListBase<Element> { |
| 8 // Raw Element. | 8 // Raw Element. |
| 9 final Element _element; | 9 final Element _element; |
| 10 final HtmlCollection _childElements; | 10 final HtmlCollection _childElements; |
| (...skipping 944 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 955 @Experimental() | 955 @Experimental() |
| 956 bool matches(String selectors) { | 956 bool matches(String selectors) { |
| 957 if (JS('bool', '!!#.matches', this)) { | 957 if (JS('bool', '!!#.matches', this)) { |
| 958 return JS('bool', '#.matches(#)', this, selectors); | 958 return JS('bool', '#.matches(#)', this, selectors); |
| 959 } else if (JS('bool', '!!#.webkitMatchesSelector', this)) { | 959 } else if (JS('bool', '!!#.webkitMatchesSelector', this)) { |
| 960 return JS('bool', '#.webkitMatchesSelector(#)', this, selectors); | 960 return JS('bool', '#.webkitMatchesSelector(#)', this, selectors); |
| 961 } else if (JS('bool', '!!#.mozMatchesSelector', this)) { | 961 } else if (JS('bool', '!!#.mozMatchesSelector', this)) { |
| 962 return JS('bool', '#.mozMatchesSelector(#)', this, selectors); | 962 return JS('bool', '#.mozMatchesSelector(#)', this, selectors); |
| 963 } else if (JS('bool', '!!#.msMatchesSelector', this)) { | 963 } else if (JS('bool', '!!#.msMatchesSelector', this)) { |
| 964 return JS('bool', '#.msMatchesSelector(#)', this, selectors); | 964 return JS('bool', '#.msMatchesSelector(#)', this, selectors); |
| 965 } else if (JS('bool', '!!#.oMatchesSelector', this)) { |
| 966 return JS('bool', '#.oMatchesSelector(#)', this, selectors); |
| 965 } else { | 967 } else { |
| 966 throw new UnsupportedError("Not supported on this platform"); | 968 throw new UnsupportedError("Not supported on this platform"); |
| 967 } | 969 } |
| 968 } | 970 } |
| 969 $else | 971 $else |
| 970 $endif | 972 $endif |
| 971 | 973 |
| 972 /** Checks if this element or any of its parents match the CSS selectors. */ | 974 /** Checks if this element or any of its parents match the CSS selectors. */ |
| 973 @Experimental() | 975 @Experimental() |
| 974 bool matchesWithAncestors(String selectors) { | 976 bool matchesWithAncestors(String selectors) { |
| (...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1280 const ScrollAlignment._internal(this._value); | 1282 const ScrollAlignment._internal(this._value); |
| 1281 toString() => 'ScrollAlignment.$_value'; | 1283 toString() => 'ScrollAlignment.$_value'; |
| 1282 | 1284 |
| 1283 /// Attempt to align the element to the top of the scrollable area. | 1285 /// Attempt to align the element to the top of the scrollable area. |
| 1284 static const TOP = const ScrollAlignment._internal('TOP'); | 1286 static const TOP = const ScrollAlignment._internal('TOP'); |
| 1285 /// Attempt to center the element in the scrollable area. | 1287 /// Attempt to center the element in the scrollable area. |
| 1286 static const CENTER = const ScrollAlignment._internal('CENTER'); | 1288 static const CENTER = const ScrollAlignment._internal('CENTER'); |
| 1287 /// Attempt to align the element to the bottom of the scrollable area. | 1289 /// Attempt to align the element to the bottom of the scrollable area. |
| 1288 static const BOTTOM = const ScrollAlignment._internal('BOTTOM'); | 1290 static const BOTTOM = const ScrollAlignment._internal('BOTTOM'); |
| 1289 } | 1291 } |
| OLD | NEW |