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 class FilteredElementList implements ElementList { | 5 class FilteredElementList implements ElementList { |
6 final Node _node; | 6 final Node _node; |
7 final NodeList _childNodes; | 7 final NodeList _childNodes; |
8 | 8 |
9 FilteredElementList(Node node): _childNodes = node.nodes, _node = node; | 9 FilteredElementList(Node node): _childNodes = node.nodes, _node = node; |
10 | 10 |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 } | 53 } |
54 | 54 |
55 void addLast(Element value) { | 55 void addLast(Element value) { |
56 add(value); | 56 add(value); |
57 } | 57 } |
58 | 58 |
59 void sort(int compare(Element a, Element b)) { | 59 void sort(int compare(Element a, Element b)) { |
60 throw const UnsupportedOperationException('TODO(jacobr): should we impl?'); | 60 throw const UnsupportedOperationException('TODO(jacobr): should we impl?'); |
61 } | 61 } |
62 | 62 |
63 void copyFrom(List<Object> src, int srcStart, int dstStart, int count) { | |
64 throw const NotImplementedException(); | |
65 } | |
66 | |
67 void setRange(int start, int length, List from, [int startFrom = 0]) { | 63 void setRange(int start, int length, List from, [int startFrom = 0]) { |
68 throw const NotImplementedException(); | 64 throw const NotImplementedException(); |
69 } | 65 } |
70 | 66 |
71 void removeRange(int start, int length) { | 67 void removeRange(int start, int length) { |
72 _filtered.getRange(start, length).forEach((el) => el.remove()); | 68 _filtered.getRange(start, length).forEach((el) => el.remove()); |
73 } | 69 } |
74 | 70 |
75 void insertRange(int start, int length, [initialValue = null]) { | 71 void insertRange(int start, int length, [initialValue = null]) { |
76 throw const NotImplementedException(); | 72 throw const NotImplementedException(); |
(...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
387 "Title can't be set for document fragments."); | 383 "Title can't be set for document fragments."); |
388 } | 384 } |
389 | 385 |
390 void set webkitdropzone(String value) { | 386 void set webkitdropzone(String value) { |
391 throw new UnsupportedOperationException( | 387 throw new UnsupportedOperationException( |
392 "WebKit drop zone can't be set for document fragments."); | 388 "WebKit drop zone can't be set for document fragments."); |
393 } | 389 } |
394 | 390 |
395 DocumentFragment clone(bool deep) => super.clone(deep); | 391 DocumentFragment clone(bool deep) => super.clone(deep); |
396 } | 392 } |
OLD | NEW |