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 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 869 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 880 */ | 880 */ |
| 881 @Experimental() | 881 @Experimental() |
| 882 bool matches(String selectors) { | 882 bool matches(String selectors) { |
| 883 if (JS('bool', '!!#.matches', this)) { | 883 if (JS('bool', '!!#.matches', this)) { |
| 884 return JS('bool', '#.matches(#)', this, selectors); | 884 return JS('bool', '#.matches(#)', this, selectors); |
| 885 } else if (JS('bool', '!!#.webkitMatchesSelector', this)) { | 885 } else if (JS('bool', '!!#.webkitMatchesSelector', this)) { |
| 886 return JS('bool', '#.webkitMatchesSelector(#)', this, selectors); | 886 return JS('bool', '#.webkitMatchesSelector(#)', this, selectors); |
| 887 } else if (JS('bool', '!!#.mozMatchesSelector', this)) { | 887 } else if (JS('bool', '!!#.mozMatchesSelector', this)) { |
| 888 return JS('bool', '#.mozMatchesSelector(#)', this, selectors); | 888 return JS('bool', '#.mozMatchesSelector(#)', this, selectors); |
| 889 } else if (JS('bool', '!!#.msMatchesSelector', this)) { | 889 } else if (JS('bool', '!!#.msMatchesSelector', this)) { |
| 890 return matches = JS('bool', '#.msMatchesSelector(#)', this, selectors); | 890 return JS('bool', '#.msMatchesSelector(#)', this, selectors); |
|
blois
2013/08/13 23:08:45
weird. but good fix!
| |
| 891 } else { | 891 } else { |
| 892 throw new UnsupportedError("Not supported on this platform"); | 892 throw new UnsupportedError("Not supported on this platform"); |
| 893 } | 893 } |
| 894 } | 894 } |
| 895 $else | 895 $else |
| 896 $endif | 896 $endif |
| 897 | 897 |
| 898 /** Checks if this element or any of its parents match the CSS selectors. */ | 898 /** Checks if this element or any of its parents match the CSS selectors. */ |
| 899 @Experimental() | 899 @Experimental() |
| 900 bool matchesWithAncestors(String selectors) { | 900 bool matchesWithAncestors(String selectors) { |
| (...skipping 408 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1309 const ScrollAlignment._internal(this._value); | 1309 const ScrollAlignment._internal(this._value); |
| 1310 toString() => 'ScrollAlignment.$_value'; | 1310 toString() => 'ScrollAlignment.$_value'; |
| 1311 | 1311 |
| 1312 /// Attempt to align the element to the top of the scrollable area. | 1312 /// Attempt to align the element to the top of the scrollable area. |
| 1313 static const TOP = const ScrollAlignment._internal('TOP'); | 1313 static const TOP = const ScrollAlignment._internal('TOP'); |
| 1314 /// Attempt to center the element in the scrollable area. | 1314 /// Attempt to center the element in the scrollable area. |
| 1315 static const CENTER = const ScrollAlignment._internal('CENTER'); | 1315 static const CENTER = const ScrollAlignment._internal('CENTER'); |
| 1316 /// Attempt to align the element to the bottom of the scrollable area. | 1316 /// Attempt to align the element to the bottom of the scrollable area. |
| 1317 static const BOTTOM = const ScrollAlignment._internal('BOTTOM'); | 1317 static const BOTTOM = const ScrollAlignment._internal('BOTTOM'); |
| 1318 } | 1318 } |
| OLD | NEW |