| Index: Source/core/html/parser/HTMLDocumentParser.cpp
|
| diff --git a/Source/core/html/parser/HTMLDocumentParser.cpp b/Source/core/html/parser/HTMLDocumentParser.cpp
|
| index 863f0381c27e21abf718e94a07f26914d1260fc6..01b8b206d783a13ae83d142279db58eee2b7f8bd 100644
|
| --- a/Source/core/html/parser/HTMLDocumentParser.cpp
|
| +++ b/Source/core/html/parser/HTMLDocumentParser.cpp
|
| @@ -404,13 +404,6 @@ void HTMLDocumentParser::processParsedChunkFromBackgroundParser(PassOwnPtr<Parse
|
| for (Vector<CompactHTMLToken>::const_iterator it = tokens->begin(); it != tokens->end(); ++it) {
|
| ASSERT(!isWaitingForScripts());
|
|
|
| - m_textPosition = it->textPosition();
|
| -
|
| - constructTreeFromCompactHTMLToken(*it);
|
| -
|
| - if (isStopped())
|
| - break;
|
| -
|
| if (!isParsingFragment()
|
| && document()->frame() && document()->frame()->navigationScheduler()->locationChangePending()) {
|
|
|
| @@ -423,6 +416,13 @@ void HTMLDocumentParser::processParsedChunkFromBackgroundParser(PassOwnPtr<Parse
|
| break;
|
| }
|
|
|
| + m_textPosition = it->textPosition();
|
| +
|
| + constructTreeFromCompactHTMLToken(*it);
|
| +
|
| + if (isStopped())
|
| + break;
|
| +
|
| if (isWaitingForScripts()) {
|
| ASSERT(it + 1 == tokens->end()); // The </script> is assumed to be the last token of this bunch.
|
| runScriptsForPausedTreeBuilder();
|
|
|