2011-01-29 Sheriff Bot <webkit.review.bot@gmail.com>
[WebKit.git] / Source / WebCore / html / parser / HTMLTreeBuilder.h
index 2af6158b5641c3196025d2ef5b56b8555aa1300c..309ac6f43b061f3c0edca77108a0ab53ecd352dd 100644 (file)
@@ -220,9 +220,7 @@ private:
         void finished();
 
     private:
-        // 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;
+        RefPtr<Document> m_dummyDocumentForFragmentParsing;
         DocumentFragment* m_fragment;
         Element* m_contextElement;