| OLD | NEW |
| 1 /// The Dart HTML library. | 1 /// The Dart HTML library. |
| 2 library dart.dom.html; | 2 library dart.dom.html; |
| 3 | 3 |
| 4 import 'dart:async'; | 4 import 'dart:async'; |
| 5 import 'dart:collection'; | 5 import 'dart:collection'; |
| 6 import 'dart:_collection-dev' hide Symbol; | 6 import 'dart:_collection-dev' hide Symbol; |
| 7 import 'dart:html_common'; | 7 import 'dart:html_common'; |
| 8 import 'dart:indexed_db'; | 8 import 'dart:indexed_db'; |
| 9 import 'dart:isolate'; | 9 import 'dart:isolate'; |
| 10 import 'dart:json' as json; | 10 import 'dart:json' as json; |
| (...skipping 7606 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7617 | 7617 |
| 7618 class _ChildrenElementList extends ListBase<Element> { | 7618 class _ChildrenElementList extends ListBase<Element> { |
| 7619 // Raw Element. | 7619 // Raw Element. |
| 7620 final Element _element; | 7620 final Element _element; |
| 7621 final HtmlCollection _childElements; | 7621 final HtmlCollection _childElements; |
| 7622 | 7622 |
| 7623 _ChildrenElementList._wrap(Element element) | 7623 _ChildrenElementList._wrap(Element element) |
| 7624 : _childElements = element.$dom_children, | 7624 : _childElements = element.$dom_children, |
| 7625 _element = element; | 7625 _element = element; |
| 7626 | 7626 |
| 7627 bool contains(Element element) => _childElements.contains(element); | 7627 bool contains(Object element) => _childElements.contains(element); |
| 7628 | 7628 |
| 7629 | 7629 |
| 7630 bool get isEmpty { | 7630 bool get isEmpty { |
| 7631 return _element.$dom_firstElementChild == null; | 7631 return _element.$dom_firstElementChild == null; |
| 7632 } | 7632 } |
| 7633 | 7633 |
| 7634 int get length { | 7634 int get length { |
| 7635 return _childElements.length; | 7635 return _childElements.length; |
| 7636 } | 7636 } |
| 7637 | 7637 |
| (...skipping 21959 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 29597 _position = nextPosition; | 29597 _position = nextPosition; |
| 29598 return true; | 29598 return true; |
| 29599 } | 29599 } |
| 29600 _current = null; | 29600 _current = null; |
| 29601 _position = _array.length; | 29601 _position = _array.length; |
| 29602 return false; | 29602 return false; |
| 29603 } | 29603 } |
| 29604 | 29604 |
| 29605 T get current => _current; | 29605 T get current => _current; |
| 29606 } | 29606 } |
| OLD | NEW |