Chromium Code Reviews| Index: Source/core/dom/ChildNodeList.cpp |
| diff --git a/Source/core/dom/ChildNodeList.cpp b/Source/core/dom/ChildNodeList.cpp |
| index 8c72856e08ece51e5ed21997f0bc876decc3895b..7cc945d30466169fe5a65bb196b4cff3a58224ed 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); |
| + m_collectionIndexCache.traceAfterDispatch(visitor); |
|
Mads Ager (chromium)
2014/05/15 10:54:24
This should just be visitor->trace(m_collectionInd
sof
2014/05/15 22:15:57
Thanks, switched to trace().
|
| + NodeList::trace(visitor); |
| +} |
| + |
| } // namespace WebCore |