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

Unified Diff: Source/core/xml/XPathNodeSet.cpp

Issue 698923002: Enable Oilpan for core/xml/ (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Non-Oilpan fixes Created 6 years, 1 month 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/xml/XPathNodeSet.h ('k') | Source/core/xml/XPathParser.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/xml/XPathNodeSet.cpp
diff --git a/Source/core/xml/XPathNodeSet.cpp b/Source/core/xml/XPathNodeSet.cpp
index 0d14afd89ce05d5c0f783202004d0d6541f3b565..b57bc5c2f2992bfcd3807e1efcb62bf2fada52dd 100644
--- a/Source/core/xml/XPathNodeSet.cpp
+++ b/Source/core/xml/XPathNodeSet.cpp
@@ -41,13 +41,20 @@ const unsigned traversalSortCutoff = 10000;
typedef WillBeHeapVector<RawPtrWillBeMember<Node> > NodeSetVector;
-PassOwnPtrWillBeRawPtr<NodeSet> NodeSet::create(const NodeSet& other)
+NodeSet* NodeSet::create(const NodeSet& other)
{
- OwnPtrWillBeRawPtr<NodeSet> nodeSet = NodeSet::create();
+ NodeSet* nodeSet = NodeSet::create();
nodeSet->m_isSorted = other.m_isSorted;
nodeSet->m_subtreesAreDisjoint = other.m_subtreesAreDisjoint;
nodeSet->m_nodes.appendVector(other.m_nodes);
- return nodeSet.release();
+ return nodeSet;
+}
+
+void NodeSet::trace(Visitor* visitor)
+{
+#if ENABLE(OILPAN)
+ visitor->trace(m_nodes);
+#endif
}
static inline Node* parentWithDepth(unsigned depth, const NodeSetVector& parents)
« no previous file with comments | « Source/core/xml/XPathNodeSet.h ('k') | Source/core/xml/XPathParser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698