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

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

Issue 1894713002: Strong html (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: ptal Created 4 years, 8 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
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 $LIBRARYNAME; 5 part of $LIBRARYNAME;
6 6
7 /** 7 /**
8 * Lazy implementation of the child nodes of an element that does not request 8 * Lazy implementation of the child nodes of an element that does not request
9 * the actual child nodes of an element until strictly necessary greatly 9 * the actual child nodes of an element until strictly necessary greatly
10 * improving performance for the typical cases where it is not required. 10 * improving performance for the typical cases where it is not required.
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 /** 206 /**
207 * A modifiable list of this node's children. 207 * A modifiable list of this node's children.
208 */ 208 */
209 List<Node> get nodes { 209 List<Node> get nodes {
210 return new _ChildNodeListLazy(this); 210 return new _ChildNodeListLazy(this);
211 } 211 }
212 212
213 set nodes(Iterable<Node> value) { 213 set nodes(Iterable<Node> value) {
214 // Copy list first since we don't want liveness during iteration. 214 // Copy list first since we don't want liveness during iteration.
215 // TODO(jacobr): there is a better way to do this. 215 // TODO(jacobr): there is a better way to do this.
216 List copy = new List.from(value); 216 var copy = value.toList();
217 text = ''; 217 text = '';
218 for (Node node in copy) { 218 for (Node node in copy) {
219 append(node); 219 append(node);
220 } 220 }
221 } 221 }
222 222
223 /** 223 /**
224 * Removes this node from the DOM. 224 * Removes this node from the DOM.
225 */ 225 */
226 @DomName('Node.removeChild') 226 @DomName('Node.removeChild')
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
309 */ 309 */
310 @DomName('Node.childNodes') 310 @DomName('Node.childNodes')
311 @DocsEditable() 311 @DocsEditable()
312 @Returns('NodeList') 312 @Returns('NodeList')
313 @Creates('NodeList') 313 @Creates('NodeList')
314 final List<Node> childNodes; 314 final List<Node> childNodes;
315 315
316 $endif 316 $endif
317 $!MEMBERS 317 $!MEMBERS
318 } 318 }
OLDNEW
« no previous file with comments | « tools/dom/templates/html/impl/impl_MessageEvent.darttemplate ('k') | tools/dom/templates/html/impl/impl_Storage.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698