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

Unified Diff: samples/third_party/dromaeo/tests/dom-modify-html.dart

Issue 9732019: dart:html perf optimization based on runing Dromaeo benchmarks (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fixes Created 8 years, 9 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: samples/third_party/dromaeo/tests/dom-modify-html.dart
diff --git a/samples/third_party/dromaeo/tests/dom-modify-html.dart b/samples/third_party/dromaeo/tests/dom-modify-html.dart
index d46cd477758130128548d9440fc0f296dfe388b4..a6a48b33313c9038773729500257aa7e5df4f76d 100644
--- a/samples/third_party/dromaeo/tests/dom-modify-html.dart
+++ b/samples/third_party/dromaeo/tests/dom-modify-html.dart
@@ -58,11 +58,11 @@ void main() {
})
.test('appendChild', () {
for (int i = 0; i < elems.length; i++)
- document.body.nodes.add(elems[i]);
+ document.body.$dom_appendChild(elems[i]);
})
.test('insertBefore', () {
for (int i = 0; i < elems.length; i++)
- document.body.insertBefore(elems[i], document.body.nodes.first);
+ document.body.insertBefore(elems[i], document.body.$dom_firstChild);
})
.end();
}

Powered by Google App Engine
This is Rietveld 408576698