Chromium Code Reviews| Index: Source/core/html/parser/HTMLDocumentParser.cpp |
| diff --git a/Source/core/html/parser/HTMLDocumentParser.cpp b/Source/core/html/parser/HTMLDocumentParser.cpp |
| index f5e6f1d5a4e48375cdc555236cd85f99a92aa852..0fc07f60a2eb6f9a4e95479d39fd68e2c2d82e14 100644 |
| --- a/Source/core/html/parser/HTMLDocumentParser.cpp |
| +++ b/Source/core/html/parser/HTMLDocumentParser.cpp |
| @@ -475,6 +475,10 @@ void HTMLDocumentParser::processParsedChunkFromBackgroundParser(PassOwnPtr<Parse |
| ASSERT(!m_tokenizer); |
| ASSERT(!m_token); |
| } |
| + |
| + // Make sure any pending text nodes are emitted before returning. |
| + if (!isStopped()) |
| + m_treeBuilder->flush(); |
|
abarth-chromium
2014/04/18 21:51:03
Do we need this in the non-threaded case? Maybe w
|
| } |
| void HTMLDocumentParser::pumpPendingSpeculations() |