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

Unified Diff: tools/dom/src/TemplateBindings.dart

Issue 17909002: Exposing Node.firstChild and Node.lastChild. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 6 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_Node.darttemplate » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/dom/src/TemplateBindings.dart
diff --git a/tools/dom/src/TemplateBindings.dart b/tools/dom/src/TemplateBindings.dart
index 5f379daa0d83d76f1ae6e2cb9aa938ffdac67707..02b7e57478b1a9d8ac886ab9f404ea9e7d819531 100644
--- a/tools/dom/src/TemplateBindings.dart
+++ b/tools/dom/src/TemplateBindings.dart
@@ -371,7 +371,7 @@ class _Bindings {
}
}
- for (var c = node.$dom_firstChild; c != null; c = c.nextNode) {
+ for (var c = node.firstChild; c != null; c = c.nextNode) {
clone.append(_createDeepCloneAndDecorateTemplates(c, syntax));
}
return clone;
@@ -387,8 +387,8 @@ class _Bindings {
// TODO(arv): This should either be a Document or HTMLDocument depending
// on doc.
d = doc.implementation.createHtmlDocument('');
- while (d.$dom_lastChild != null) {
- d.$dom_lastChild.remove();
+ while (d.lastChild != null) {
+ d.lastChild.remove();
}
doc._templateContentsOwner = d;
}
@@ -420,7 +420,7 @@ class _Bindings {
if (!templateElement._isAttributeTemplate) {
var child;
- while ((child = templateElement.$dom_firstChild) != null) {
+ while ((child = templateElement.firstChild) != null) {
content.append(child);
}
return;
@@ -439,7 +439,7 @@ class _Bindings {
//
var newRoot = _cloneAndSeperateAttributeTemplate(templateElement);
var child;
- while ((child = templateElement.$dom_firstChild) != null) {
+ while ((child = templateElement.firstChild) != null) {
newRoot.append(child);
}
content.append(newRoot);
@@ -471,7 +471,7 @@ class _Bindings {
_parseAndBind(node, 'text', node.text, model, syntax);
}
- for (var c = node.$dom_firstChild; c != null; c = c.nextNode) {
+ for (var c = node.firstChild; c != null; c = c.nextNode) {
_addBindings(c, model, syntax);
}
}
@@ -587,12 +587,12 @@ class _Bindings {
}
static void _addTemplateInstanceRecord(fragment, model) {
- if (fragment.$dom_firstChild == null) {
+ if (fragment.firstChild == null) {
return;
}
var instanceRecord = new TemplateInstance(
- fragment.$dom_firstChild, fragment.$dom_lastChild, model);
+ fragment.firstChild, fragment.lastChild, model);
var node = instanceRecord.firstNode;
while (node != null) {
@@ -603,7 +603,7 @@ class _Bindings {
static void _removeAllBindingsRecursively(Node node) {
_nodeOrCustom(node).unbindAll();
- for (var c = node.$dom_firstChild; c != null; c = c.nextNode) {
+ for (var c = node.firstChild; c != null; c = c.nextNode) {
_removeAllBindingsRecursively(c);
}
}
@@ -693,7 +693,7 @@ class _TemplateIterator {
void insertInstanceAt(int index, Node fragment) {
var previousTerminator = getTerminatorAt(index - 1);
- var terminator = fragment.$dom_lastChild;
+ var terminator = fragment.lastChild;
if (terminator == null) terminator = previousTerminator;
terminators.insert(index, terminator);
« no previous file with comments | « tools/dom/scripts/htmlrenamer.py ('k') | tools/dom/templates/html/impl/impl_Node.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698