| 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();
|
| }
|
|
|
| void HTMLDocumentParser::pumpPendingSpeculations()
|
|
|