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

Unified Diff: sdk/lib/html/html_common/filtered_element_list.dart

Issue 14175013: Add setAll, insertAll, replaceRange and fillRange. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: sdk/lib/html/html_common/filtered_element_list.dart
diff --git a/sdk/lib/html/html_common/filtered_element_list.dart b/sdk/lib/html/html_common/filtered_element_list.dart
index cad661e7b0ae1dc01b37036b1d9e043a4b98676d..0efe3d540deb0e1d008a30cd66274d0e6c0831f7 100644
--- a/sdk/lib/html/html_common/filtered_element_list.dart
+++ b/sdk/lib/html/html_common/filtered_element_list.dart
@@ -76,6 +76,14 @@ class FilteredElementList extends ListBase<Element> {
throw new UnimplementedError();
}
+ void fillRange(int start, int end, [Element fillValue]) {
+ throw new UnimplementedError();
+ }
+
+ void replaceRange(int start, int end, Iterable<Element> iterable) {
+ throw new UnimplementedError();
+ }
+
void removeRange(int start, int end) {
_filtered.sublist(start, end).forEach((el) => el.remove());
}
@@ -102,6 +110,10 @@ class FilteredElementList extends ListBase<Element> {
_childNodes.insert(index, value);
}
+ void insertAll(int index, Iterable<Element> iterable) {
+ _childNodes.insertAll(index, iterable);
+ }
+
Element removeAt(int index) {
final result = this[index];
result.remove();

Powered by Google App Engine
This is Rietveld 408576698