2011-01-28 Eric Seidel <eric@webkit.org>
[WebKit-https.git] / Source / WebCore / html / parser / HTMLTreeBuilder.h
index 309ac6f..2af6158 100644 (file)
@@ -220,7 +220,9 @@ private:
         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;