| Index: Source/core/dom/ContainerNode.h
|
| diff --git a/Source/core/dom/ContainerNode.h b/Source/core/dom/ContainerNode.h
|
| index 62a3e3230b2b586de5a51f6d301914886bcef541..67b4c472a61ab46e0ba5174a3a9de3769e4bc8a4 100644
|
| --- a/Source/core/dom/ContainerNode.h
|
| +++ b/Source/core/dom/ContainerNode.h
|
| @@ -82,7 +82,7 @@ public:
|
|
|
| Node* firstChild() const { return m_firstChild; }
|
| Node* lastChild() const { return m_lastChild; }
|
| - bool hasChildNodes() const { return m_firstChild; }
|
| + bool hasChildren() const { return m_firstChild; }
|
|
|
| bool hasOneChild() const { return m_firstChild && !m_firstChild->nextSibling(); }
|
| bool hasOneTextChild() const { return hasOneChild() && m_firstChild->isTextNode(); }
|
| @@ -90,8 +90,8 @@ public:
|
|
|
| PassRefPtr<HTMLCollection> children();
|
|
|
| - unsigned childNodeCount() const;
|
| - Node* childNode(unsigned index) const;
|
| + unsigned countChildren() const;
|
| + Node* traverseToChildAt(unsigned index) const;
|
|
|
| PassRefPtr<Element> querySelector(const AtomicString& selectors, ExceptionState&);
|
| PassRefPtr<NodeList> querySelectorAll(const AtomicString& selectors, ExceptionState&);
|
| @@ -215,18 +215,18 @@ inline void ContainerNode::detachChildren(const AttachContext& context)
|
| child->detach(childrenContext);
|
| }
|
|
|
| -inline unsigned Node::childNodeCount() const
|
| +inline unsigned Node::countChildren() const
|
| {
|
| if (!isContainerNode())
|
| return 0;
|
| - return toContainerNode(this)->childNodeCount();
|
| + return toContainerNode(this)->countChildren();
|
| }
|
|
|
| -inline Node* Node::childNode(unsigned index) const
|
| +inline Node* Node::traverseToChildAt(unsigned index) const
|
| {
|
| if (!isContainerNode())
|
| return 0;
|
| - return toContainerNode(this)->childNode(index);
|
| + return toContainerNode(this)->traverseToChildAt(index);
|
| }
|
|
|
| inline Node* Node::firstChild() const
|
|
|