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

Unified Diff: tools/dom/templates/html/impl/impl_DocumentFragment.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/scripts/htmlrenamer.py ('k') | tools/dom/templates/html/impl/impl_Element.darttemplate » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/dom/templates/html/impl/impl_DocumentFragment.darttemplate
diff --git a/tools/dom/templates/html/impl/impl_DocumentFragment.darttemplate b/tools/dom/templates/html/impl/impl_DocumentFragment.darttemplate
index 4bfdfbcc794295c0024b4098a4bd24aaa03b5e44..c2afcdea358ac9c02b05fe102090658d23957872 100644
--- a/tools/dom/templates/html/impl/impl_DocumentFragment.darttemplate
+++ b/tools/dom/templates/html/impl/impl_DocumentFragment.darttemplate
@@ -42,7 +42,7 @@ $endif
String get innerHtml {
final e = new Element.tag("div");
- e.nodes.add(this.clone(true));
+ e.append(this.clone(true));
return e.innerHtml;
}
@@ -60,19 +60,11 @@ $endif
}
/**
- * Adds the specified element after the last child of this
- * document fragment.
- */
- void append(Element element) {
- this.children.add(element);
- }
-
- /**
* Adds the specified text as a text node after the last child of this
* document fragment.
*/
void appendText(String text) {
- this.nodes.add(new Text(text));
+ this.append(new Text(text));
}
@@ -81,7 +73,7 @@ $endif
* last child of this document fragment.
*/
void appendHtml(String text) {
- this.nodes.add(new DocumentFragment.html(text));
+ this.append(new DocumentFragment.html(text));
}
$!MEMBERS
« no previous file with comments | « tools/dom/scripts/htmlrenamer.py ('k') | tools/dom/templates/html/impl/impl_Element.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698