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 7d76e964e88406eecdf62d3f3451c14c3dbb6fc3..a3cab9558775272fb6658db153cf8839fa8f68ac 100644 |
--- a/third_party/WebKit/Source/core/dom/ScriptLoader.cpp |
+++ b/third_party/WebKit/Source/core/dom/ScriptLoader.cpp |
@@ -67,9 +67,9 @@ ScriptLoader::ScriptLoader(Element* element, bool parserInserted, bool alreadySt |
, m_haveFiredLoad(false) |
, m_willBeParserExecuted(false) |
, m_readyToBeParserExecuted(false) |
+ , m_willExecuteInOrder(false) |
, m_willExecuteWhenDocumentFinishedParsing(false) |
, m_forceAsync(!parserInserted) |
- , m_willExecuteInOrder(false) |
{ |
ASSERT(m_element); |
if (parserInserted && element->document().scriptableDocumentParser() && !element->document().isInDocumentWrite()) |
@@ -249,8 +249,8 @@ bool ScriptLoader::prepareScript(const TextPosition& scriptStartPosition, Legacy |
m_willBeParserExecuted = true; |
m_readyToBeParserExecuted = true; |
} else if (client->hasSourceAttribute() && !client->asyncAttributeValue() && !m_forceAsync) { |
- m_willExecuteInOrder = true; |
m_pendingScript = PendingScript(m_element, m_resource.get()); |
+ m_willExecuteInOrder = true; |
contextDocument->scriptRunner()->queueScriptForExecution(this, ScriptRunner::IN_ORDER_EXECUTION); |
// Note that watchForLoad can immediately call notifyFinished. |
m_pendingScript.watchForLoad(this); |