| Index: Source/core/dom/ChildNodeList.h
|
| diff --git a/Source/core/dom/ChildNodeList.h b/Source/core/dom/ChildNodeList.h
|
| index 517935893900396714ca3b5ad80badd518a49999..a7dd03d699f4e201dadade1d7577513d224fe2e1 100644
|
| --- a/Source/core/dom/ChildNodeList.h
|
| +++ b/Source/core/dom/ChildNodeList.h
|
| @@ -48,12 +48,14 @@ public:
|
| void invalidateCache() { m_collectionIndexCache.invalidate(); }
|
| ContainerNode& ownerNode() const { return *m_parent; }
|
|
|
| - // CollectionIndexCache API.
|
| ContainerNode& rootNode() const { return ownerNode(); }
|
| +
|
| + // CollectionIndexCache API.
|
| bool canTraverseBackward() const { return true; }
|
| - Node* itemBefore(const Node* previousItem) const;
|
| Node* traverseToFirstElement() const { return rootNode().firstChild(); }
|
| + Node* traverseToLastElement() const { return rootNode().lastChild(); }
|
| Node* traverseForwardToOffset(unsigned offset, Node& currentNode, unsigned& currentOffset) const;
|
| + Node* traverseBackwardToOffset(unsigned offset, Node& currentNode, unsigned& currentOffset) const;
|
|
|
| private:
|
| explicit ChildNodeList(ContainerNode& rootNode);
|
|
|