| Index: Source/core/dom/ContainerNode.cpp
|
| diff --git a/Source/core/dom/ContainerNode.cpp b/Source/core/dom/ContainerNode.cpp
|
| index d63b98e908235bd54bd1ea1d68fd517d04e89bab..111b413015109a252d7a6ee9c829a99c85f4c994 100644
|
| --- a/Source/core/dom/ContainerNode.cpp
|
| +++ b/Source/core/dom/ContainerNode.cpp
|
| @@ -537,7 +537,7 @@ void ContainerNode::removeChildren()
|
| RenderWidget::UpdateSuspendScope suspendWidgetHierarchyUpdates;
|
| {
|
| NoEventDispatchAssertion assertNoEventDispatch;
|
| - removedChildren.reserveInitialCapacity(childNodeCount());
|
| + removedChildren.reserveInitialCapacity(countChildren());
|
| while (m_firstChild) {
|
| removedChildren.append(m_firstChild);
|
| removeBetween(0, m_firstChild->nextSibling(), *m_firstChild);
|
| @@ -880,7 +880,7 @@ PassRefPtr<HTMLCollection> ContainerNode::children()
|
| return ensureRareData().ensureNodeLists().addCache<HTMLCollection>(this, NodeChildren);
|
| }
|
|
|
| -unsigned ContainerNode::childNodeCount() const
|
| +unsigned ContainerNode::countChildren() const
|
| {
|
| unsigned count = 0;
|
| Node *n;
|
| @@ -889,7 +889,7 @@ unsigned ContainerNode::childNodeCount() const
|
| return count;
|
| }
|
|
|
| -Node *ContainerNode::childNode(unsigned index) const
|
| +Node* ContainerNode::traverseToChildAt(unsigned index) const
|
| {
|
| unsigned i;
|
| Node *n = firstChild();
|
|
|