Index: Source/core/xml/DOMParser.h |
diff --git a/Source/core/xml/DOMParser.h b/Source/core/xml/DOMParser.h |
index b65395bbb24ab65fb4c81d1a47d781e12bbc21f9..7bee9e1607726d2cf438251a221a871e00b2676c 100644 |
--- a/Source/core/xml/DOMParser.h |
+++ b/Source/core/xml/DOMParser.h |
@@ -22,20 +22,18 @@ |
#include "bindings/core/v8/ScriptWrappable.h" |
#include "platform/heap/Handle.h" |
#include "wtf/Forward.h" |
-#include "wtf/RefCounted.h" |
-#include "wtf/RefPtr.h" |
namespace blink { |
class Document; |
class ExceptionState; |
-class DOMParser final : public RefCountedWillBeGarbageCollected<DOMParser>, public ScriptWrappable { |
+class DOMParser final : public GarbageCollected<DOMParser>, public ScriptWrappable { |
DEFINE_WRAPPERTYPEINFO(); |
public: |
- static PassRefPtrWillBeRawPtr<DOMParser> create() |
+ static DOMParser* create() |
{ |
- return adoptRefWillBeNoop(new DOMParser); |
+ return new DOMParser; |
} |
PassRefPtrWillBeRawPtr<Document> parseFromString(const String&, const String& contentType, ExceptionState&); |