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

Unified Diff: client/html/generated/html/dartium/Node.dart

Issue 9600035: Enable new dart:html wrapperless frog bindings and wrapper dartium bindings. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Handle all code review comments Created 8 years, 10 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: client/html/generated/html/dartium/Node.dart
diff --git a/client/html/generated/html/dartium/Node.dart b/client/html/generated/html/dartium/Node.dart
index 8afd0b4e816208a9a7cbf406577fc29fd85b7feb..55cd4f939918ae7c02f1c6c85efa863b231b5767 100644
--- a/client/html/generated/html/dartium/Node.dart
+++ b/client/html/generated/html/dartium/Node.dart
@@ -13,8 +13,10 @@ class _NodeImpl extends _EventTargetImpl implements Node {
// Copy list first since we don't want liveness during iteration.
// TODO(jacobr): there is a better way to do this.
List copy = new List.from(value);
- nodes.clear();
- nodes.addAll(copy);
+ text = '';
+ for (Node node in copy) {
+ _appendChild(node);
+ }
}
// TODO(jacobr): should we throw an exception if parent is already null?
« no previous file with comments | « client/html/generated/html/dartium/HtmlElement.dart ('k') | client/html/generated/html/dartium/NodeSelector.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698