2011-01-28 Eric Seidel <eric@webkit.org>
[WebKit.git] / Source / WebCore / html / parser / HTMLTreeBuilder.h
index 309ac6f43b061f3c0edca77108a0ab53ecd352dd..2af6158b5641c3196025d2ef5b56b8555aa1300c 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;