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

Unified Diff: Source/core/html/parser/HTMLScriptRunner.cpp

Issue 142193004: Create & use microtask work queue (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: cr changes Created 6 years, 11 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
Index: Source/core/html/parser/HTMLScriptRunner.cpp
diff --git a/Source/core/html/parser/HTMLScriptRunner.cpp b/Source/core/html/parser/HTMLScriptRunner.cpp
index c8b9c6c27c7c249580a1311b6283b399f930d481..a6417da8f42b8c7a8943a78f8c0ef9b28c114695 100644
--- a/Source/core/html/parser/HTMLScriptRunner.cpp
+++ b/Source/core/html/parser/HTMLScriptRunner.cpp
@@ -126,7 +126,7 @@ void HTMLScriptRunner::executePendingScriptAndDispatchEvent(PendingScript& pendi
stopWatchingForLoad(pendingScript);
if (!isExecutingScript())
- Microtask::performCheckpoint();
+ Microtask::performMicrotaskCheckpoint();
// Clear the pending script before possible rentrancy from executeScript()
RefPtr<Element> element = pendingScript.releaseElementAndClear();
@@ -290,7 +290,7 @@ void HTMLScriptRunner::runScript(Element* script, const TextPosition& scriptStar
// unfortuantely no obvious way to tell if prepareScript is going to
// execute the script from out here.
if (!isExecutingScript())
- Microtask::performCheckpoint();
+ Microtask::performMicrotaskCheckpoint();
InsertionPointRecord insertionPointRecord(m_host->inputStream());
NestingLevelIncrementer nestingLevelIncrementer(m_scriptNestingLevel);

Powered by Google App Engine
This is Rietveld 408576698