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; |
} |