OLD | NEW |
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 /** | 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. |
11 */ | 11 */ |
12 class _ChildNodeListLazy implements List { | 12 class _ChildNodeListLazy implements List { |
13 final Node _this; | 13 final Node _this; |
14 | 14 |
15 _ChildNodeListLazy(this._this); | 15 _ChildNodeListLazy(this._this); |
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
272 final Node parent = this.parentNode; | 272 final Node parent = this.parentNode; |
273 parent.$dom_replaceChild(otherNode, this); | 273 parent.$dom_replaceChild(otherNode, this); |
274 } catch (e) { | 274 } catch (e) { |
275 | 275 |
276 }; | 276 }; |
277 return this; | 277 return this; |
278 } | 278 } |
279 | 279 |
280 $!MEMBERS | 280 $!MEMBERS |
281 } | 281 } |
OLD | NEW |