Index: third_party/WebKit/Source/core/dom/ScriptLoader.cpp |
diff --git a/third_party/WebKit/Source/core/dom/ScriptLoader.cpp b/third_party/WebKit/Source/core/dom/ScriptLoader.cpp |
index 675369844febc793a6ff025a813dfbd190609812..6ab367b7c14f6272c6b0911d803356756ee4cb48 100644 |
--- a/third_party/WebKit/Source/core/dom/ScriptLoader.cpp |
+++ b/third_party/WebKit/Source/core/dom/ScriptLoader.cpp |
@@ -249,7 +249,7 @@ bool ScriptLoader::prepareScript(const TextPosition& scriptStartPosition, Legacy |
m_willBeParserExecuted = true; |
} else if (client->hasSourceAttribute() && m_parserInserted && !client->asyncAttributeValue()) { |
m_willBeParserExecuted = true; |
- } else if (!client->hasSourceAttribute() && m_parserInserted && !elementDocument.isRenderingReady()) { |
+ } else if (!client->hasSourceAttribute() && m_parserInserted && !elementDocument.isScriptExecutionReady()) { |
m_willBeParserExecuted = true; |
m_readyToBeParserExecuted = true; |
} else if (client->hasSourceAttribute() && !client->asyncAttributeValue() && !m_forceAsync) { |