Chromium Code Reviews| Index: Source/core/dom/DecodedDataDocumentParser.cpp |
| diff --git a/Source/core/dom/DecodedDataDocumentParser.cpp b/Source/core/dom/DecodedDataDocumentParser.cpp |
| index 02b299fc97c448158191b7893749ad6d4ec3fc6e..bc0906da756eb7486f51f1877ea21692fc6e5e1f 100644 |
| --- a/Source/core/dom/DecodedDataDocumentParser.cpp |
| +++ b/Source/core/dom/DecodedDataDocumentParser.cpp |
| @@ -35,6 +35,7 @@ namespace WebCore { |
| DecodedDataDocumentParser::DecodedDataDocumentParser(Document* document) |
| : DocumentParser(document) |
| , m_hasAppendedData(false) |
| + , m_needsDecoder(true) |
| { |
| } |
| @@ -44,6 +45,7 @@ DecodedDataDocumentParser::~DecodedDataDocumentParser() |
| void DecodedDataDocumentParser::setDecoder(PassOwnPtr<TextResourceDecoder> decoder) |
| { |
| + m_needsDecoder = false; |
| m_decoder = decoder; |
| } |
| @@ -52,6 +54,11 @@ TextResourceDecoder* DecodedDataDocumentParser::decoder() |
| return m_decoder.get(); |
| } |
| +PassOwnPtr<TextResourceDecoder> DecodedDataDocumentParser::adoptDecoder() |
|
eseidel
2013/11/18 20:07:40
Maybe takeDecoder()? Not quite sure what this is
oystein (OOO til 10th of July)
2013/11/18 22:18:42
Done.
|
| +{ |
| + return m_decoder.release(); |
| +} |
| + |
| void DecodedDataDocumentParser::setHasAppendedData() |
| { |
| m_hasAppendedData = true; |