Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(186)

Unified Diff: sky/engine/core/html/parser/HTMLScriptRunner.cpp

Issue 934083002: Remove the concept of pendingScripts from HTMLScriptRunner (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/engine/core/html/parser/HTMLScriptRunner.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
« no previous file with comments | « sky/engine/core/html/parser/HTMLScriptRunner.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698