| Index: third_party/WebKit/Source/core/html/parser/HTMLDocumentParser.cpp
|
| diff --git a/third_party/WebKit/Source/core/html/parser/HTMLDocumentParser.cpp b/third_party/WebKit/Source/core/html/parser/HTMLDocumentParser.cpp
|
| index aa007910512d3a0bd953112c939a71c091ab4275..e3be0bd6a112211784b50078c31b3a306698d820 100644
|
| --- a/third_party/WebKit/Source/core/html/parser/HTMLDocumentParser.cpp
|
| +++ b/third_party/WebKit/Source/core/html/parser/HTMLDocumentParser.cpp
|
| @@ -265,14 +265,11 @@ bool HTMLDocumentParser::canTakeNextToken()
|
| if (isStopped())
|
| return false;
|
|
|
| - if (isWaitingForScripts()) {
|
| - // If we're paused waiting for a script, we try to execute scripts before continuing.
|
| + // If we're paused waiting for a script, we try to execute scripts before continuing.
|
| + if (m_treeBuilder->hasParserBlockingScript())
|
| runScriptsForPausedTreeBuilder();
|
| - if (isStopped())
|
| - return false;
|
| - if (isWaitingForScripts())
|
| - return false;
|
| - }
|
| + if (isStopped() || isWaitingForScripts())
|
| + return false;
|
|
|
| // FIXME: It's wrong for the HTMLDocumentParser to reach back to the
|
| // LocalFrame, but this approach is how the old parser handled
|
|
|