Chromium Code Reviews| 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); |
| } |
|
abarth-chromium
2013/12/15 05:50:00
We should be able to remove this override now, rig
oystein (OOO til 10th of July)
2013/12/16 19:33:30
Done.
|
| +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 |