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

Unified Diff: Source/core/html/parser/TextDocumentParser.cpp

Issue 74513003: Moved text decoding to the parser thread (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@parserthread_step25
Patch Set: Removed AtomicString from HTMLMetaCharsetParser Created 7 years, 1 month 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
Index: Source/core/html/parser/TextDocumentParser.cpp
diff --git a/Source/core/html/parser/TextDocumentParser.cpp b/Source/core/html/parser/TextDocumentParser.cpp
index 38175a0f6bfea99a4338b6a7d7afcd1f8b2bd707..712637318efc297425bfa1dd54a534386d8bc2e5 100644
--- a/Source/core/html/parser/TextDocumentParser.cpp
+++ b/Source/core/html/parser/TextDocumentParser.cpp
@@ -49,6 +49,13 @@ void TextDocumentParser::append(PassRefPtr<StringImpl> text)
HTMLDocumentParser::append(text);
}
+void TextDocumentParser::appendBytes(const char* data, size_t length)
+{
+ if (!m_haveInsertedFakePreElement)
+ insertFakePreElement();
+ HTMLDocumentParser::appendBytes(data, length);
+}
+
void TextDocumentParser::insertFakePreElement()
{
// In principle, we should create a specialized tree builder for

Powered by Google App Engine
This is Rietveld 408576698