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 html; | 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. |
11 final Element _element; | 11 final Element _element; |
12 final HtmlCollection _childElements; | 12 final HtmlCollection _childElements; |
13 | 13 |
14 _ChildrenElementList._wrap(Element element) | 14 _ChildrenElementList._wrap(Element element) |
15 : _childElements = element.$dom_children, | 15 : _childElements = element.$dom_children, |
(...skipping 1024 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1040 $if DART2JS | 1040 $if DART2JS |
1041 // Optimization to improve performance until the dart2js compiler inlines this | 1041 // Optimization to improve performance until the dart2js compiler inlines this |
1042 // method. | 1042 // method. |
1043 static dynamic createElement_tag(String tag) => | 1043 static dynamic createElement_tag(String tag) => |
1044 JS('Element', 'document.createElement(#)', tag); | 1044 JS('Element', 'document.createElement(#)', tag); |
1045 $else | 1045 $else |
1046 static Element createElement_tag(String tag) => | 1046 static Element createElement_tag(String tag) => |
1047 document.$dom_createElement(tag); | 1047 document.$dom_createElement(tag); |
1048 $endif | 1048 $endif |
1049 } | 1049 } |
OLD | NEW |