| Index: sky/engine/core/html/parser/HTMLScriptRunner.cpp
|
| diff --git a/sky/engine/core/html/parser/HTMLScriptRunner.cpp b/sky/engine/core/html/parser/HTMLScriptRunner.cpp
|
| index 83ff303dadb850307826b90b8b38ec38f02b0435..b79a9008b631de3bb91d0840e9eab2d2ac97027f 100644
|
| --- a/sky/engine/core/html/parser/HTMLScriptRunner.cpp
|
| +++ b/sky/engine/core/html/parser/HTMLScriptRunner.cpp
|
| @@ -25,24 +25,7 @@ HTMLScriptRunner::~HTMLScriptRunner()
|
|
|
| void HTMLScriptRunner::runScript(PassRefPtr<HTMLScriptElement> element, TextPosition textPosition)
|
| {
|
| - ASSERT(!hasPendingScripts());
|
| -
|
| - if (!element->document().isScriptExecutionReady()) {
|
| - m_pendingScript = element;
|
| - m_textPosition = textPosition;
|
| - return;
|
| - }
|
| -
|
| - executeScript(element, textPosition);
|
| -}
|
| -
|
| -void HTMLScriptRunner::executePendingScripts()
|
| -{
|
| - executeScript(m_pendingScript.release(), m_textPosition);
|
| -}
|
| -
|
| -void HTMLScriptRunner::executeScript(PassRefPtr<HTMLScriptElement> element, TextPosition textPosition)
|
| -{
|
| + ASSERT(element->document().haveImportsLoaded());
|
| Microtask::performCheckpoint();
|
|
|
| Document& sourceDocument = element->document();
|
|
|