| Index: Source/core/xml/DOMParser.h
|
| diff --git a/Source/core/xml/DOMParser.h b/Source/core/xml/DOMParser.h
|
| index afe0d16433ce5ec935e5e4dce6c0c40c78a8da3d..0610f2b4a11167ad5a241dd5c239a5822974bc85 100644
|
| --- a/Source/core/xml/DOMParser.h
|
| +++ b/Source/core/xml/DOMParser.h
|
| @@ -20,6 +20,7 @@
|
| #define DOMParser_h
|
|
|
| #include "bindings/v8/ScriptWrappable.h"
|
| +#include "heap/Handle.h"
|
| #include "wtf/Forward.h"
|
| #include "wtf/RefCounted.h"
|
| #include "wtf/RefPtr.h"
|
| @@ -29,12 +30,18 @@ namespace WebCore {
|
| class Document;
|
| class ExceptionState;
|
|
|
| -class DOMParser : public RefCounted<DOMParser>, public ScriptWrappable {
|
| +class DOMParser : public RefCountedWillBeGarbageCollectedFinalized<DOMParser>, public ScriptWrappable {
|
| + DECLARE_GC_INFO;
|
| public:
|
| - static PassRefPtr<DOMParser> create() { return adoptRef(new DOMParser); }
|
| + static PassRefPtrWillBeRawPtr<DOMParser> create()
|
| + {
|
| + return adoptRefWillBeNoop(new DOMParser);
|
| + }
|
|
|
| PassRefPtr<Document> parseFromString(const String&, const String& contentType, ExceptionState&);
|
|
|
| + void trace(Visitor*) { }
|
| +
|
| private:
|
| DOMParser()
|
| {
|
|
|