Index: Source/core/html/parser/HTMLViewSourceParser.cpp |
diff --git a/Source/core/html/parser/HTMLViewSourceParser.cpp b/Source/core/html/parser/HTMLViewSourceParser.cpp |
index 3ecd086ba5bbf1c757540d5f722dfe4614ec5123..4288d3e900a82bc701b20adad6e659d7749c6906 100644 |
--- a/Source/core/html/parser/HTMLViewSourceParser.cpp |
+++ b/Source/core/html/parser/HTMLViewSourceParser.cpp |
@@ -33,10 +33,9 @@ |
namespace WebCore { |
-// FIXME: HTMLViewSourceDocument should be a reference. |
-HTMLViewSourceParser::HTMLViewSourceParser(HTMLViewSourceDocument* document, const String& mimeType) |
- : DecodedDataDocumentParser(*document) |
- , m_tokenizer(HTMLTokenizer::create(HTMLParserOptions(document))) |
+HTMLViewSourceParser::HTMLViewSourceParser(HTMLViewSourceDocument& document, const String& mimeType) |
+ : DecodedDataDocumentParser(document) |
+ , m_tokenizer(HTMLTokenizer::create(HTMLParserOptions(&document))) |
{ |
if (mimeType != "text/html" && !DOMImplementation::isXMLMIMEType(mimeType)) |
m_tokenizer->setState(HTMLTokenizer::PLAINTEXTState); |