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

Unified Diff: Source/core/dom/NodeIteratorBase.cpp

Issue 285213003: Oilpan: move Node traversal objects to the heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Drop nullptr type conversions Created 6 years, 7 months 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 | « Source/core/dom/NodeIteratorBase.h ('k') | Source/core/dom/TreeWalker.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/NodeIteratorBase.cpp
diff --git a/Source/core/dom/NodeIteratorBase.cpp b/Source/core/dom/NodeIteratorBase.cpp
index db5bf008c23ee9840da69c97da3f4881d99cc33d..8899fc88dce79d403d732b4270ebd5f26c4d274d 100644
--- a/Source/core/dom/NodeIteratorBase.cpp
+++ b/Source/core/dom/NodeIteratorBase.cpp
@@ -31,7 +31,7 @@
namespace WebCore {
-NodeIteratorBase::NodeIteratorBase(PassRefPtr<Node> rootNode, unsigned whatToShow, PassRefPtr<NodeFilter> nodeFilter)
+NodeIteratorBase::NodeIteratorBase(PassRefPtrWillBeRawPtr<Node> rootNode, unsigned whatToShow, PassRefPtrWillBeRawPtr<NodeFilter> nodeFilter)
: m_root(rootNode)
, m_whatToShow(whatToShow)
, m_filter(nodeFilter)
@@ -49,4 +49,10 @@ short NodeIteratorBase::acceptNode(Node* node, ExceptionState& exceptionState) c
return m_filter->acceptNode(node, exceptionState);
}
+void NodeIteratorBase::trace(Visitor* visitor)
+{
+ visitor->trace(m_root);
+ visitor->trace(m_filter);
+}
+
} // namespace WebCore
« no previous file with comments | « Source/core/dom/NodeIteratorBase.h ('k') | Source/core/dom/TreeWalker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698