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

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

Issue 14651030: Version 0.5.7.1 . (Closed) Base URL: http://dart.googlecode.com/svn/trunk/dart/
Patch Set: Created 7 years, 7 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
« no previous file with comments | « tools/dom/templates/html/impl/impl_Element.darttemplate ('k') | no next file » | 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 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 /** Unbinds the attribute [name]. */ 265 /** Unbinds the attribute [name]. */
266 @Experimental 266 @Experimental
267 void unbind(String name) {} 267 void unbind(String name) {}
268 268
269 /** Unbinds all bound attributes. */ 269 /** Unbinds all bound attributes. */
270 @Experimental 270 @Experimental
271 void unbindAll() {} 271 void unbindAll() {}
272 272
273 TemplateInstance _templateInstance; 273 TemplateInstance _templateInstance;
274 274
275 // TODO(arv): Consider storing all "NodeRareData" on a single object?
276 int __instanceTerminatorCount;
277 int get _instanceTerminatorCount {
278 if (__instanceTerminatorCount == null) return 0;
279 return __instanceTerminatorCount;
280 }
281 set _instanceTerminatorCount(int value) {
282 if (value == 0) value = null;
283 __instanceTerminatorCount = value;
284 }
285
286 /** Gets the template instance that instantiated this node, if any. */ 275 /** Gets the template instance that instantiated this node, if any. */
287 @Experimental 276 @Experimental
288 TemplateInstance get templateInstance => 277 TemplateInstance get templateInstance =>
289 _templateInstance != null ? _templateInstance : 278 _templateInstance != null ? _templateInstance :
290 (parent != null ? parent.templateInstance : null); 279 (parent != null ? parent.templateInstance : null);
291 280
292 $!MEMBERS 281 $!MEMBERS
293 } 282 }
OLDNEW
« no previous file with comments | « tools/dom/templates/html/impl/impl_Element.darttemplate ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698