Index: Source/core/dom/ChildNodeList.cpp |
diff --git a/Source/core/dom/ChildNodeList.cpp b/Source/core/dom/ChildNodeList.cpp |
index 8c72856e08ece51e5ed21997f0bc876decc3895b..c1a895cb932ef8eecadba7cf427c9f1c053b0440 100644 |
--- a/Source/core/dom/ChildNodeList.cpp |
+++ b/Source/core/dom/ChildNodeList.cpp |
@@ -41,7 +41,9 @@ Node* ChildNodeList::virtualOwnerNode() const |
ChildNodeList::~ChildNodeList() |
{ |
+#if !ENABLE(OILPAN) |
m_parent->nodeLists()->removeChildNodeList(this); |
+#endif |
} |
Node* ChildNodeList::traverseForwardToOffset(unsigned offset, Node& currentNode, unsigned& currentOffset) const |
@@ -66,4 +68,11 @@ Node* ChildNodeList::traverseBackwardToOffset(unsigned offset, Node& currentNode |
return 0; |
} |
+void ChildNodeList::trace(Visitor* visitor) |
+{ |
+ visitor->trace(m_parent); |
+ visitor->trace(m_collectionIndexCache); |
+ NodeList::trace(visitor); |
+} |
+ |
} // namespace WebCore |