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

Unified Diff: sdk/lib/html/templates/html/impl/impl_NodeList.darttemplate

Issue 11365019: Merging dart:html interfaces and implementations (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fixing merged classes in dartium not compiling under dartc. Created 8 years, 1 month 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: sdk/lib/html/templates/html/impl/impl_NodeList.darttemplate
diff --git a/sdk/lib/html/templates/html/impl/impl_NodeList.darttemplate b/sdk/lib/html/templates/html/impl/impl_NodeList.darttemplate
index 5e944540609b543377ed93a27dd72d4b3951cacb..e21a04421ef9231b418f7ab17bc35b99da55fb5c 100644
--- a/sdk/lib/html/templates/html/impl/impl_NodeList.darttemplate
+++ b/sdk/lib/html/templates/html/impl/impl_NodeList.darttemplate
@@ -82,7 +82,7 @@ class _NodeListWrapper extends _ListWrapper<Node> implements List {
}
class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC {
- _NodeImpl _parent;
+ Node _parent;
// -- start List<Node> mixins.
// Node is the element type.
@@ -98,21 +98,21 @@ class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC {
// From Collection<Node>:
- void add(_NodeImpl value) {
+ void add(Node value) {
_parent.$dom_appendChild(value);
}
- void addLast(_NodeImpl value) {
+ void addLast(Node value) {
_parent.$dom_appendChild(value);
}
- void addAll(Collection<_NodeImpl> collection) {
- for (_NodeImpl node in collection) {
+ void addAll(Collection<Node> collection) {
+ for (Node node in collection) {
_parent.$dom_appendChild(node);
}
}
- _NodeImpl removeLast() {
+ Node removeLast() {
final result = this.last;
if (result != null) {
_parent.$dom_removeChild(result);
@@ -124,7 +124,7 @@ class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC {
_parent.text = '';
}
- void operator []=(int index, _NodeImpl value) {
+ void operator []=(int index, Node value) {
_parent.$dom_replaceChild(value, this[index]);
}
« no previous file with comments | « sdk/lib/html/templates/html/impl/impl_Node.darttemplate ('k') | sdk/lib/html/templates/html/impl/impl_Point.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698