Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(165)

Unified Diff: sky/engine/core/dom/DecodedDataDocumentParser.cpp

Issue 664573004: Live the dream (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: DEPS Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/engine/core/dom/DecodedDataDocumentParser.h ('k') | sky/engine/core/dom/Document.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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());
-}
-
};
« no previous file with comments | « sky/engine/core/dom/DecodedDataDocumentParser.h ('k') | sky/engine/core/dom/Document.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698