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

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

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/XMLSerializer.idl ('k') | Source/core/xml/XPathEvaluator.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/xml/XPathEvaluator.h
diff --git a/Source/core/xml/XPathEvaluator.h b/Source/core/xml/XPathEvaluator.h
index c00f10057957c2a708ac6c3e020b6078685fcff0..46ed8c23c984a63c80be9103d264304bbd1fbf89 100644
--- a/Source/core/xml/XPathEvaluator.h
+++ b/Source/core/xml/XPathEvaluator.h
@@ -29,9 +29,6 @@
#include "bindings/core/v8/ScriptWrappable.h"
#include "platform/heap/Handle.h"
-#include "wtf/Forward.h"
-#include "wtf/PassRefPtr.h"
-#include "wtf/RefCounted.h"
namespace blink {
@@ -42,18 +39,18 @@ class XPathExpression;
class XPathNSResolver;
class XPathResult;
-class XPathEvaluator final : public RefCountedWillBeGarbageCollected<XPathEvaluator>, public ScriptWrappable {
+class XPathEvaluator final : public GarbageCollected<XPathEvaluator>, public ScriptWrappable {
DEFINE_WRAPPERTYPEINFO();
public:
- static PassRefPtrWillBeRawPtr<XPathEvaluator> create()
+ static XPathEvaluator* create()
{
- return adoptRefWillBeNoop(new XPathEvaluator);
+ return new XPathEvaluator;
}
- PassRefPtrWillBeRawPtr<XPathExpression> createExpression(const String& expression, PassRefPtrWillBeRawPtr<XPathNSResolver>, ExceptionState&);
- PassRefPtrWillBeRawPtr<XPathNSResolver> createNSResolver(Node* nodeResolver);
- PassRefPtrWillBeRawPtr<XPathResult> evaluate(const String& expression, Node* contextNode,
- PassRefPtrWillBeRawPtr<XPathNSResolver>, unsigned short type, const ScriptValue&, ExceptionState&);
+ XPathExpression* createExpression(const String& expression, XPathNSResolver*, ExceptionState&);
+ XPathNSResolver* createNSResolver(Node* nodeResolver);
+ XPathResult* evaluate(const String& expression, Node* contextNode,
+ XPathNSResolver*, unsigned short type, const ScriptValue&, ExceptionState&);
DEFINE_INLINE_TRACE() { }
« no previous file with comments | « Source/core/xml/XMLSerializer.idl ('k') | Source/core/xml/XPathEvaluator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698