| 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 } | 55 } |
| 56 } | 56 } |
| 57 return false; | 57 return false; |
| 58 } | 58 } |
| 59 | 59 |
| 60 String join([String separator]) { | 60 String join([String separator]) { |
| 61 return IterableMixinWorkaround.joinList(this, separator); | 61 return IterableMixinWorkaround.joinList(this, separator); |
| 62 } | 62 } |
| 63 | 63 |
| 64 Iterable map(f(Element element)) { | 64 Iterable map(f(Element element)) { |
| 65 return IterableMixinWorkaround.map(this, f); | 65 return IterableMixinWorkaround.mapList(this, f); |
| 66 } | 66 } |
| 67 | 67 |
| 68 List mappedBy(f(Element element)) { | 68 List mappedBy(f(Element element)) { |
| 69 return IterableMixinWorkaround.mappedByList(this, f); | 69 return IterableMixinWorkaround.mappedByList(this, f); |
| 70 } | 70 } |
| 71 | 71 |
| 72 Iterable<Element> where(bool f(Element element)) { | 72 Iterable<Element> where(bool f(Element element)) { |
| 73 return IterableMixinWorkaround.where(this, f); | 73 return IterableMixinWorkaround.where(this, f); |
| 74 } | 74 } |
| 75 | 75 |
| (...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 272 for (Element el in this) { | 272 for (Element el in this) { |
| 273 f(el); | 273 f(el); |
| 274 } | 274 } |
| 275 } | 275 } |
| 276 | 276 |
| 277 String join([String separator]) { | 277 String join([String separator]) { |
| 278 return IterableMixinWorkaround.joinList(this, separator); | 278 return IterableMixinWorkaround.joinList(this, separator); |
| 279 } | 279 } |
| 280 | 280 |
| 281 Iterable map(f(Element element)) { | 281 Iterable map(f(Element element)) { |
| 282 return IterableMixinWorkaround.map(this, f); | 282 return IterableMixinWorkaround.mapList(this, f); |
| 283 } | 283 } |
| 284 | 284 |
| 285 List mappedBy(f(Element element)) { | 285 List mappedBy(f(Element element)) { |
| 286 return IterableMixinWorkaround.mappedByList(this, f); | 286 return IterableMixinWorkaround.mappedByList(this, f); |
| 287 } | 287 } |
| 288 | 288 |
| 289 Iterable<Element> where(bool f(Element element)) { | 289 Iterable<Element> where(bool f(Element element)) { |
| 290 return IterableMixinWorkaround.where(this, f); | 290 return IterableMixinWorkaround.where(this, f); |
| 291 } | 291 } |
| 292 | 292 |
| (...skipping 734 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1027 $if DART2JS | 1027 $if DART2JS |
| 1028 // Optimization to improve performance until the dart2js compiler inlines this | 1028 // Optimization to improve performance until the dart2js compiler inlines this |
| 1029 // method. | 1029 // method. |
| 1030 static dynamic createElement_tag(String tag) => | 1030 static dynamic createElement_tag(String tag) => |
| 1031 JS('Element', 'document.createElement(#)', tag); | 1031 JS('Element', 'document.createElement(#)', tag); |
| 1032 $else | 1032 $else |
| 1033 static Element createElement_tag(String tag) => | 1033 static Element createElement_tag(String tag) => |
| 1034 document.$dom_createElement(tag); | 1034 document.$dom_createElement(tag); |
| 1035 $endif | 1035 $endif |
| 1036 } | 1036 } |
| OLD | NEW |