| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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 // TODO(jacobr): use Lists.dart to remove some of the duplicated functionality. | 5 // TODO(jacobr): use Lists.dart to remove some of the duplicated functionality. |
| 6 class _ChildrenElementList implements ElementList { | 6 class _ChildrenElementList implements ElementList { |
| 7 // Raw Element. | 7 // Raw Element. |
| 8 final _element; | 8 final _element; |
| 9 final _childElements; | 9 final _childElements; |
| 10 | 10 |
| (...skipping 556 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 567 } | 567 } |
| 568 | 568 |
| 569 void set elements(Collection<Element> value) { | 569 void set elements(Collection<Element> value) { |
| 570 final elements = this.elements; | 570 final elements = this.elements; |
| 571 elements.clear(); | 571 elements.clear(); |
| 572 elements.addAll(value); | 572 elements.addAll(value); |
| 573 } | 573 } |
| 574 | 574 |
| 575 /** | 575 /** |
| 576 * @domName childElementCount, firstElementChild, lastElementChild, | 576 * @domName childElementCount, firstElementChild, lastElementChild, |
| 577 * children, appendChild | 577 * children, Node.appendChild |
| 578 */ | 578 */ |
| 579 ElementList get elements() { | 579 ElementList get elements() { |
| 580 if (_elements == null) { | 580 if (_elements == null) { |
| 581 _elements = new _ChildrenElementList._wrap(_ptr); | 581 _elements = new _ChildrenElementList._wrap(_ptr); |
| 582 } | 582 } |
| 583 return _elements; | 583 return _elements; |
| 584 } | 584 } |
| 585 | 585 |
| 586 /** @domName className, classList */ | 586 /** @domName className, classList */ |
| 587 Set<String> get classes() { | 587 Set<String> get classes() { |
| (...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 761 | 761 |
| 762 ElementEvents get on() { | 762 ElementEvents get on() { |
| 763 if (_on === null) { | 763 if (_on === null) { |
| 764 _on = new ElementEventsImplementation._wrap(_ptr); | 764 _on = new ElementEventsImplementation._wrap(_ptr); |
| 765 } | 765 } |
| 766 return _on; | 766 return _on; |
| 767 } | 767 } |
| 768 | 768 |
| 769 Element clone(bool deep) => super.clone(deep); | 769 Element clone(bool deep) => super.clone(deep); |
| 770 } | 770 } |
| OLD | NEW |