Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(914)

Side by Side Diff: tools/dom/templates/html/impl/impl_Element.darttemplate

Issue 12061008: Renaming dart:html library from 'html' to 'dart.html' (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698