void finished();
private:
- RefPtr<Document> m_dummyDocumentForFragmentParsing;
+ // Use a shared dummy document to avoid expensive Document creation.
+ // Hold a raw pointer to the document since there is no need to ref it.
+ HTMLDocument* m_dummyDocumentForFragmentParsing;
DocumentFragment* m_fragment;
Element* m_contextElement;