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

Unified Diff: Source/core/dom/ParentNode.h

Issue 412033004: Use Traversal<>::firstChild() instead of firstWithin() when iterating over children (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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 | « Source/core/dom/Document.cpp ('k') | Source/core/html/HTMLTableElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/ParentNode.h
diff --git a/Source/core/dom/ParentNode.h b/Source/core/dom/ParentNode.h
index db05e1dd42b139ef48a03a53721aae1ef4a0df0a..4fae173795bb3190aa3b19c787beb89fe7b96470 100644
--- a/Source/core/dom/ParentNode.h
+++ b/Source/core/dom/ParentNode.h
@@ -57,7 +57,7 @@ public:
static unsigned childElementCount(ContainerNode& node)
{
unsigned count = 0;
- for (Element* child = ElementTraversal::firstWithin(node); child; child = ElementTraversal::nextSibling(*child))
+ for (Element* child = ElementTraversal::firstChild(node); child; child = ElementTraversal::nextSibling(*child))
++count;
return count;
}
« no previous file with comments | « Source/core/dom/Document.cpp ('k') | Source/core/html/HTMLTableElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698