Index: Source/core/xml/DOMParser.h |
diff --git a/Source/core/xml/DOMParser.h b/Source/core/xml/DOMParser.h |
index 13841fb992d093ea08075a01cb7b06e9d3f7ce48..a4930bcf9b1fe69cae8d3cbb02ae55466d2f5aa5 100644 |
--- a/Source/core/xml/DOMParser.h |
+++ b/Source/core/xml/DOMParser.h |
@@ -32,9 +32,9 @@ class Document; |
class DOMParser final : public RefCountedWillBeGarbageCollected<DOMParser>, public ScriptWrappable { |
DEFINE_WRAPPERTYPEINFO(); |
public: |
- static PassRefPtrWillBeRawPtr<DOMParser> create() |
+ static PassRefPtrWillBeRawPtr<DOMParser> create(Document& document) |
{ |
- return adoptRefWillBeNoop(new DOMParser); |
+ return adoptRefWillBeNoop(new DOMParser(document)); |
} |
PassRefPtrWillBeRawPtr<Document> parseFromString(const String&, const String& type); |
@@ -42,7 +42,9 @@ public: |
void trace(Visitor*) { } |
private: |
- DOMParser() { } |
+ DOMParser(Document&); |
+ |
+ WeakPtrWillBeWeakMember<Document> m_contextDocument; |
}; |
} // namespace blink |