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

Unified Diff: tools/dom/templates/html/impl/impl_Node.darttemplate

Issue 12596004: Replaced Element.append with Node.appendChild (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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
« no previous file with comments | « tools/dom/templates/html/impl/impl_Element.darttemplate ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/dom/templates/html/impl/impl_Node.darttemplate
diff --git a/tools/dom/templates/html/impl/impl_Node.darttemplate b/tools/dom/templates/html/impl/impl_Node.darttemplate
index b1e18a47e7e60d96ae5a822c6d4e580ed63a38a4..94b84dce0724f6771333329de7325d0ad80ec3a8 100644
--- a/tools/dom/templates/html/impl/impl_Node.darttemplate
+++ b/tools/dom/templates/html/impl/impl_Node.darttemplate
@@ -60,11 +60,11 @@ $endif
}
void add(Node value) {
- _this.$dom_appendChild(value);
+ _this.append(value);
}
void addLast(Node value) {
- _this.$dom_appendChild(value);
+ _this.append(value);
}
@@ -74,13 +74,13 @@ $endif
// Optimized route for copying between nodes.
for (var i = 0, len = iterable.length; i < len; ++i) {
// Should use $dom_firstChild, Bug 8886.
- _this.$dom_appendChild(iterable[0]);
+ _this.append(iterable[0]);
}
}
return;
}
for (Node node in iterable) {
- _this.$dom_appendChild(node);
+ _this.append(node);
}
}
@@ -263,7 +263,7 @@ $(ANNOTATIONS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC {
List copy = new List.from(value);
text = '';
for (Node node in copy) {
- $dom_appendChild(node);
+ append(node);
}
}
« no previous file with comments | « tools/dom/templates/html/impl/impl_Element.darttemplate ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698