| Index: sky/engine/core/dom/DecodedDataDocumentParser.cpp
|
| diff --git a/sky/engine/core/dom/DecodedDataDocumentParser.cpp b/sky/engine/core/dom/DecodedDataDocumentParser.cpp
|
| index 2ac8203e21c9663cf4f366e111466178556babc0..2e786ccedfbc336df1e2d3f05b5e02a3bcb97f44 100644
|
| --- a/sky/engine/core/dom/DecodedDataDocumentParser.cpp
|
| +++ b/sky/engine/core/dom/DecodedDataDocumentParser.cpp
|
| @@ -33,7 +33,6 @@ namespace blink {
|
|
|
| DecodedDataDocumentParser::DecodedDataDocumentParser(Document& document)
|
| : DocumentParser(&document)
|
| - , m_decoder(TextResourceDecoder::create())
|
| {
|
| }
|
|
|
| @@ -41,33 +40,4 @@ DecodedDataDocumentParser::~DecodedDataDocumentParser()
|
| {
|
| }
|
|
|
| -void DecodedDataDocumentParser::appendBytes(const char* data, size_t length)
|
| -{
|
| - if (!length)
|
| - return;
|
| -
|
| - // This should be checking isStopped(), but XMLDocumentParser prematurely
|
| - // stops parsing when handling an XSLT processing instruction and still
|
| - // needs to receive decoded bytes.
|
| - if (isDetached())
|
| - return;
|
| -
|
| - String decodedData = m_decoder->decode(data, length);
|
| - if (!decodedData.isEmpty())
|
| - append(decodedData.releaseImpl());
|
| -}
|
| -
|
| -void DecodedDataDocumentParser::flush()
|
| -{
|
| - // This should be checking isStopped(), but XMLDocumentParser prematurely
|
| - // stops parsing when handling an XSLT processing instruction and still
|
| - // needs to receive decoded bytes.
|
| - if (isDetached())
|
| - return;
|
| -
|
| - String decodedData = m_decoder->flush();
|
| - if (!decodedData.isEmpty())
|
| - append(decodedData.releaseImpl());
|
| -}
|
| -
|
| };
|
|
|