Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(21)

Side by Side Diff: lib/dom/templates/html/impl/impl_DocumentFragment.darttemplate

Issue 10898003: Remove List.copyFrom from VM and from tests. It was removed from the List interface in r941. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comment, fix error. Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « lib/dom/src/native_DOMImplementation.dart ('k') | lib/dom/templates/html/impl/impl_Element.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698