| 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 b485c4478ceb9e1c6db17acc25d10bf921488c70..8002b841c78d274dadb3d72952578af847012e5e 100644
|
| --- a/sdk/lib/html/dartium/html_dartium.dart
|
| +++ b/sdk/lib/html/dartium/html_dartium.dart
|
| @@ -18592,7 +18592,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);
|
|
|