Index: Source/core/dom/ChildNodeList.h |
diff --git a/Source/core/dom/ChildNodeList.h b/Source/core/dom/ChildNodeList.h |
index 0fe38cc7abdc24faa58e532c019570c05693df56..aab6861c3b2d1d309d1a8409e03dc818ede6de3d 100644 |
--- a/Source/core/dom/ChildNodeList.h |
+++ b/Source/core/dom/ChildNodeList.h |
@@ -46,10 +46,10 @@ public: |
// Non-DOM API. |
void invalidateCache() { m_collectionIndexCache.invalidate(); } |
- ContainerNode* ownerNode() const { return m_parent.get(); } |
+ ContainerNode& ownerNode() const { return *m_parent; } |
// CollectionIndexCache API. |
- ContainerNode& rootNode() const { return *m_parent; } |
+ ContainerNode& rootNode() const { return ownerNode(); } |
bool canTraverseBackward() const { return true; } |
Node* itemBefore(const Node* previousItem) const; |
Node* traverseToFirstElement(const ContainerNode& root) const { return root.firstChild(); } |