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 rangeLength, List from, [int startFrom = 0]) { | 63 void setRange(int start, int rangeLength, List from, [int startFrom = 0]) { |
68 throw const NotImplementedException(); | 64 throw const NotImplementedException(); |
69 } | 65 } |
70 | 66 |
71 void removeRange(int start, int rangeLength) { | 67 void removeRange(int start, int rangeLength) { |
72 _filtered.getRange(start, rangeLength).forEach((el) => el.remove()); | 68 _filtered.getRange(start, rangeLength).forEach((el) => el.remove()); |
73 } | 69 } |
74 | 70 |
75 void insertRange(int start, int rangeLength, [initialValue = null]) { | 71 void insertRange(int start, int rangeLength, [initialValue = null]) { |
76 throw const NotImplementedException(); | 72 throw const NotImplementedException(); |
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
348 "WebKit drop zone can't be set for document fragments."); | 344 "WebKit drop zone can't be set for document fragments."); |
349 } | 345 } |
350 | 346 |
351 void set webkitRegionOverflow(String value) { | 347 void set webkitRegionOverflow(String value) { |
352 throw new UnsupportedOperationException( | 348 throw new UnsupportedOperationException( |
353 "WebKit region overflow can't be set for document fragments."); | 349 "WebKit region overflow can't be set for document fragments."); |
354 } | 350 } |
355 | 351 |
356 $!MEMBERS | 352 $!MEMBERS |
357 } | 353 } |
OLD | NEW |