| Index: third_party/WebKit/Source/core/html/parser/BackgroundHTMLParser.cpp
|
| diff --git a/third_party/WebKit/Source/core/html/parser/BackgroundHTMLParser.cpp b/third_party/WebKit/Source/core/html/parser/BackgroundHTMLParser.cpp
|
| index 74f0f30bdb5f048b0135cdf23e15c268375587c6..8d08984b220477899accd7d6207abfca35eaf9f4 100644
|
| --- a/third_party/WebKit/Source/core/html/parser/BackgroundHTMLParser.cpp
|
| +++ b/third_party/WebKit/Source/core/html/parser/BackgroundHTMLParser.cpp
|
| @@ -107,7 +107,6 @@
|
| , m_preloadScanner(config->preloadScanner.release())
|
| , m_decoder(config->decoder.release())
|
| , m_loadingTaskRunner(loadingTaskRunner)
|
| - , m_parsedChunkQueue(config->parsedChunkQueue)
|
| , m_startingScript(false)
|
| {
|
| ASSERT(m_outstandingTokenLimit > 0);
|
| @@ -178,7 +177,6 @@
|
| m_input.rewindTo(checkpoint->inputCheckpoint, checkpoint->unparsedInput);
|
| m_preloadScanner->rewindTo(checkpoint->preloadScannerCheckpoint);
|
| m_startingScript = false;
|
| - m_parsedChunkQueue->clear();
|
| pumpTokenizer();
|
| }
|
|
|
| @@ -293,12 +291,9 @@
|
| chunk->startingScript = m_startingScript;
|
| m_startingScript = false;
|
|
|
| - bool isEmpty = m_parsedChunkQueue->enqueue(chunk.release());
|
| - if (isEmpty) {
|
| - m_loadingTaskRunner->postTask(
|
| - BLINK_FROM_HERE,
|
| - new Task(threadSafeBind(&HTMLDocumentParser::notifyPendingParsedChunks, AllowCrossThreadAccess(m_parser))));
|
| - }
|
| + m_loadingTaskRunner->postTask(
|
| + BLINK_FROM_HERE,
|
| + new Task(threadSafeBind(&HTMLDocumentParser::didReceiveParsedChunkFromBackgroundParser, AllowCrossThreadAccess(m_parser), chunk.release())));
|
|
|
| m_pendingTokens = adoptPtr(new CompactHTMLTokenStream);
|
| }
|
|
|