| Index: sdk/lib/html/dart2js/html_dart2js.dart
|
| diff --git a/sdk/lib/html/dart2js/html_dart2js.dart b/sdk/lib/html/dart2js/html_dart2js.dart
|
| index 87ba3f1d5cf122a900adb8580cdcff1d7535d571..7b7ad1efecf54df81cccb89b54afff71572cfa34 100644
|
| --- a/sdk/lib/html/dart2js/html_dart2js.dart
|
| +++ b/sdk/lib/html/dart2js/html_dart2js.dart
|
| @@ -17083,7 +17083,13 @@ class _ChildNodeListLazy implements List {
|
|
|
| void addAll(Iterable<Node> iterable) {
|
| if (iterable is _ChildNodeListLazy) {
|
| - iterable = new List.from(iterable);
|
| + if (iterable._this != _this) {
|
| + // Optimized route for copying between nodes.
|
| + for (var i = 0, len = iterable.length; i < len; ++i) {
|
| + _this.$dom_appendChild(iterable[0]);
|
| + }
|
| + }
|
| + return;
|
| }
|
| for (Node node in iterable) {
|
| _this.$dom_appendChild(node);
|
|
|