| Index: Source/WebCore/dom/ContainerNode.h
|
| ===================================================================
|
| --- Source/WebCore/dom/ContainerNode.h (revision 137970)
|
| +++ Source/WebCore/dom/ContainerNode.h (working copy)
|
| @@ -344,7 +344,7 @@
|
| Node* nextNode()
|
| {
|
| if (LIKELY(!hasSnapshot())) {
|
| - Node* node = m_currentNode;
|
| + Node* node = m_currentNode.get();
|
| if (m_currentNode)
|
| m_currentNode = m_currentNode->nextSibling();
|
| return node;
|
| @@ -360,7 +360,7 @@
|
| if (hasSnapshot())
|
| return;
|
| m_childNodes = adoptPtr(new Vector<RefPtr<Node> >());
|
| - Node* node = m_currentNode;
|
| + Node* node = m_currentNode.get();
|
| while (node) {
|
| m_childNodes->append(node);
|
| node = node->nextSibling();
|
| @@ -382,7 +382,7 @@
|
| private:
|
| static ChildNodesLazySnapshot* latestSnapshot;
|
|
|
| - Node* m_currentNode;
|
| + RefPtr<Node> m_currentNode;
|
| unsigned m_currentIndex;
|
| OwnPtr<Vector<RefPtr<Node> > > m_childNodes; // Lazily instantiated.
|
| ChildNodesLazySnapshot* m_nextSnapshot;
|
|
|