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

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

Issue 1228093007: Updates for dart:js fixes after initial --gen-interop (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: merge Created 5 years, 5 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 277 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 * * [Node.childNodes] 288 * * [Node.childNodes]
289 * (https://developer.mozilla.org/en-US/docs/Web/API/Node.childNodes) 289 * (https://developer.mozilla.org/en-US/docs/Web/API/Node.childNodes)
290 * from MDN. 290 * from MDN.
291 */ 291 */
292 @DomName('Node.childNodes') 292 @DomName('Node.childNodes')
293 @DocsEditable() 293 @DocsEditable()
294 @Returns('NodeList') 294 @Returns('NodeList')
295 @Creates('NodeList') 295 @Creates('NodeList')
296 List<Node> get childNodes { 296 List<Node> get childNodes {
297 if (_childNodes == null) { 297 if (_childNodes == null) {
298 window.console.log(">>> construct childNodes collection/list");
299 List<Node> nodes = new List<Node>(); 298 List<Node> nodes = new List<Node>();
300 var jsCollection = _blink.BlinkNode.instance.childNodes_Getter_(unwrap_js o(this)); 299 var jsCollection = _blink.BlinkNode.instance.childNodes_Getter_(unwrap_js o(this));
301 var collectionLen = jsCollection['length']; 300 var collectionLen = jsCollection['length'];
302 for (var i = 0; i < collectionLen; i++) { 301 for (var i = 0; i < collectionLen; i++) {
303 nodes.add(wrap_jso(jsCollection.callMethod('item', [i]))); 302 nodes.add(wrap_jso(jsCollection.callMethod('item', [i])));
304 } 303 }
305 _childNodes = nodes; 304 _childNodes = nodes;
306 } 305 }
307 return _childNodes; 306 return _childNodes;
308 } 307 }
(...skipping 26 matching lines...) Expand all
335 @DomName('Node.childNodes') 334 @DomName('Node.childNodes')
336 @DocsEditable() 335 @DocsEditable()
337 @Returns('NodeList') 336 @Returns('NodeList')
338 @Creates('NodeList') 337 @Creates('NodeList')
339 final List<Node> childNodes; 338 final List<Node> childNodes;
340 339
341 $endif 340 $endif
342 $endif 341 $endif
343 $!MEMBERS 342 $!MEMBERS
344 } 343 }
OLDNEW
« tools/dom/scripts/systemnative.py ('K') | « tools/dom/scripts/systemnative.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698