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

Unified Diff: sdk/lib/html/dartium/html_dartium.dart

Side-by-side diff isn't available for this file because of its large size.
Issue 613063002: Make Node.nodes.insertAll take an end-positioned index. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 2 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:
Download patch
« no previous file with comments | « sdk/lib/html/dart2js/html_dart2js.dart ('k') | tests/html/node_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/html/dartium/html_dartium.dart
diff --git a/sdk/lib/html/dartium/html_dartium.dart b/sdk/lib/html/dartium/html_dartium.dart
index d02574c021a53c5d27e6020966f9ae94184d56aa..2f4a16b9f53778ae41a77bfe4424c8c10db9f6d6 100644
--- a/sdk/lib/html/dartium/html_dartium.dart
+++ b/sdk/lib/html/dartium/html_dartium.dart
@@ -23487,8 +23487,12 @@ class _ChildNodeListLazy extends ListBase<Node> implements NodeListWrapper {
}
void insertAll(int index, Iterable<Node> iterable) {
- var item = this[index];
- _this.insertAllBefore(iterable, item);
+ if (index == length) {
+ addAll(iterable);
+ } else {
+ var item = this[index];
+ _this.insertAllBefore(iterable, item);
+ }
}
void setAll(int index, Iterable<Node> iterable) {
@@ -31073,12 +31077,12 @@ class Url extends NativeFieldWrapperClass2 implements UrlUtils {
if ((blob_OR_source_OR_stream is Blob || blob_OR_source_OR_stream == null)) {
return _blink.BlinkURL.createObjectURL_Callback_Blob(blob_OR_source_OR_stream);
}
- if ((blob_OR_source_OR_stream is MediaStream)) {
- return _blink.BlinkURL.createObjectURL_Callback_MediaStream(blob_OR_source_OR_stream);
- }
if ((blob_OR_source_OR_stream is MediaSource)) {
return _blink.BlinkURL.createObjectURL_Callback_MediaSource(blob_OR_source_OR_stream);
}
+ if ((blob_OR_source_OR_stream is MediaStream)) {
+ return _blink.BlinkURL.createObjectURL_Callback_MediaStream(blob_OR_source_OR_stream);
+ }
throw new ArgumentError("Incorrect number or type of arguments");
}
« no previous file with comments | « sdk/lib/html/dart2js/html_dart2js.dart ('k') | tests/html/node_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698