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

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

Issue 1099613003: Oilpan: have xml/ objects on the heap by default. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: simplify XPathResult dtor Created 5 years, 8 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/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 ecc6163e0e918b670674a6693ab965a679179944..7cba9d039099ec46e736d11b01a8cb2b0f972f3b 100644
--- a/Source/core/xml/XPathNodeSet.cpp
+++ b/Source/core/xml/XPathNodeSet.cpp
@@ -41,13 +41,13 @@ 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;
}
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