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

Unified Diff: client/html/generated/html/frog/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
« no previous file with comments | « client/html/generated/html/frog/HtmlElement.dart ('k') | client/html/generated/html/frog/NodeSelector.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/html/generated/html/frog/Node.dart
diff --git a/client/html/generated/html/frog/Node.dart b/client/html/generated/html/frog/Node.dart
index f345dad48d0a52c0be934a52f20d4506460c76fa..e7d3afbcfe0ef13b7f2cf11a543b0e680908ee3e 100644
--- a/client/html/generated/html/frog/Node.dart
+++ b/client/html/generated/html/frog/Node.dart
@@ -13,8 +13,10 @@ class _NodeImpl extends _EventTargetImpl implements Node native "*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/frog/HtmlElement.dart ('k') | client/html/generated/html/frog/NodeSelector.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698