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

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

Issue 64033002: Version 0.8.10.8 (Closed) Base URL: http://dart.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 1 month 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
« no previous file with comments | « dart/tools/dom/src/CrossFrameTypes.dart ('k') | deps/dartium.deps/DEPS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 183
184 List<Node> get rawList => _this.childNodes; 184 List<Node> get rawList => _this.childNodes;
185 } 185 }
186 186
187 187
188 $(ANNOTATIONS)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC { 188 $(ANNOTATIONS)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC {
189 189
190 // Custom element created callback. 190 // Custom element created callback.
191 Node._created() : super._created(); 191 Node._created() : super._created();
192 192
193 /**
194 * A modifiable list of this node's children.
195 */
193 List<Node> get nodes { 196 List<Node> get nodes {
194 return new _ChildNodeListLazy(this); 197 return new _ChildNodeListLazy(this);
195 } 198 }
196 199
197 void set nodes(Iterable<Node> value) { 200 void set nodes(Iterable<Node> value) {
198 // Copy list first since we don't want liveness during iteration. 201 // Copy list first since we don't want liveness during iteration.
199 // TODO(jacobr): there is a better way to do this. 202 // TODO(jacobr): there is a better way to do this.
200 List copy = new List.from(value); 203 List copy = new List.from(value);
201 text = ''; 204 text = '';
202 for (Node node in copy) { 205 for (Node node in copy) {
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 } 258 }
256 } 259 }
257 } 260 }
258 261
259 /** 262 /**
260 * Print out a String representation of this Node. 263 * Print out a String representation of this Node.
261 */ 264 */
262 String toString() => nodeValue == null ? super.toString() : nodeValue; 265 String toString() => nodeValue == null ? super.toString() : nodeValue;
263 $!MEMBERS 266 $!MEMBERS
264 } 267 }
OLDNEW
« no previous file with comments | « dart/tools/dom/src/CrossFrameTypes.dart ('k') | deps/dartium.deps/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698