Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(117)

Unified Diff: Source/WebCore/dom/ContainerNode.h

Issue 11593024: Merge 137739 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1312/
Patch Set: Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Source/WebCore/dom/ContainerNodeAlgorithms.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebCore/dom/ContainerNode.h
===================================================================
--- Source/WebCore/dom/ContainerNode.h (revision 137972)
+++ Source/WebCore/dom/ContainerNode.h (working copy)
@@ -341,18 +341,18 @@
}
// Returns 0 if there is no next Node.
- Node* nextNode()
+ PassRefPtr<Node> nextNode()
{
if (LIKELY(!hasSnapshot())) {
- Node* node = m_currentNode.get();
- if (m_currentNode)
- m_currentNode = m_currentNode->nextSibling();
+ RefPtr<Node> node = m_currentNode;
+ if (node.get())
+ m_currentNode = node->nextSibling();
return node;
}
Vector<RefPtr<Node> >* nodeVector = m_childNodes.get();
if (m_currentIndex >= nodeVector->size())
return 0;
- return (*nodeVector)[m_currentIndex++].get();
+ return (*nodeVector)[m_currentIndex++];
}
void takeSnapshot()
« no previous file with comments | « no previous file | Source/WebCore/dom/ContainerNodeAlgorithms.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698