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

Unified Diff: Source/core/xml/XPathResult.h

Issue 166903010: Oilpan: Move core/xml/ to oilpan's heap (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 10 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
Index: Source/core/xml/XPathResult.h
diff --git a/Source/core/xml/XPathResult.h b/Source/core/xml/XPathResult.h
index 319ef6cb1d56575201eef9b4fa3f54f14c15cebd..cf5fbd1c906e79b06b54c6bea718f9995e6e9336 100644
--- a/Source/core/xml/XPathResult.h
+++ b/Source/core/xml/XPathResult.h
@@ -29,6 +29,7 @@
#include "bindings/v8/ScriptWrappable.h"
#include "core/xml/XPathValue.h"
+#include "heap/Handle.h"
#include "wtf/Forward.h"
#include "wtf/RefCounted.h"
@@ -38,7 +39,8 @@ class Document;
class ExceptionState;
class Node;
-class XPathResult : public RefCounted<XPathResult>, public ScriptWrappable {
+class XPathResult : public RefCountedWillBeGarbageCollectedFinalized<XPathResult>, public ScriptWrappable {
+ DECLARE_GC_INFO;
public:
enum XPathResultType {
ANY_TYPE = 0,
@@ -53,7 +55,10 @@ public:
FIRST_ORDERED_NODE_TYPE = 9
};
- static PassRefPtr<XPathResult> create(Document* document, const XPath::Value& value) { return adoptRef(new XPathResult(document, value)); }
+ static PassRefPtrWillBeRawPtr<XPathResult> create(Document* document, const XPath::Value& value)
+ {
+ return adoptRefWillBeNoop(new XPathResult(document, value));
+ }
~XPathResult();
void convertTo(unsigned short type, ExceptionState&);
@@ -72,6 +77,8 @@ public:
const XPath::Value& value() const { return m_value; }
+ void trace(Visitor*) { }
+
private:
XPathResult(Document*, const XPath::Value&);

Powered by Google App Engine
This is Rietveld 408576698