Chromium Code Reviews| Index: tools/dom/templates/html/impl/impl_Element.darttemplate |
| diff --git a/tools/dom/templates/html/impl/impl_Element.darttemplate b/tools/dom/templates/html/impl/impl_Element.darttemplate |
| index 16396fa85d259b65b6f098ee4494bb8d596e7d72..2b36b4b4dac8a8c179b3d73bc075ef35338560f4 100644 |
| --- a/tools/dom/templates/html/impl/impl_Element.darttemplate |
| +++ b/tools/dom/templates/html/impl/impl_Element.darttemplate |
| @@ -4,7 +4,8 @@ |
| part of $LIBRARYNAME; |
| -class _ChildrenElementList extends ListBase<Element> { |
| +class _ChildrenElementList extends ListBase<Element> |
| + implements NodeListWrapper { |
| // Raw Element. |
| final Element _element; |
| final HtmlCollection _childElements; |
| @@ -157,6 +158,8 @@ class _ChildrenElementList extends ListBase<Element> { |
| if (length > 1) throw new StateError("More than one element"); |
| return first; |
| } |
| + |
| + List<Node> get rawList => _element._childElements; |
|
justinfagnani
2013/10/26 01:32:26
why isn't this just => _childElements ?
blois
2013/10/26 17:55:17
Done.
|
| } |
| /** |
| @@ -255,7 +258,8 @@ $!STREAM_GETTER_SIGNATURES |
| // a better option given that we cannot quite force NodeList to be an |
| // ElementList as there are valid cases where a NodeList JavaScript object |
| // contains Node objects that are not Elements. |
| -class _FrozenElementList<T extends Element> extends ListBase<T> implements ElementList { |
| +class _FrozenElementList<T extends Element> extends ListBase<T> |
| + implements ElementList, NodeListWrapper { |
| final List<Node> _nodeList; |
| // The subset of _nodeList that are Elements. |
| List<Element> _elementList; |
| @@ -306,6 +310,9 @@ class _FrozenElementList<T extends Element> extends ListBase<T> implements Eleme |
| CssRect get borderEdge => _elementList.first.borderEdge; |
| CssRect get marginEdge => _elementList.first.marginEdge; |
| + |
| + List<Node> get rawList => _nodeList; |
| + |
| $!ELEMENT_STREAM_GETTERS |
| } |