diff options
author | Lorry Tar Creator <lorry-tar-importer@lorry> | 2016-04-10 09:28:39 +0000 |
---|---|---|
committer | Lorry Tar Creator <lorry-tar-importer@lorry> | 2016-04-10 09:28:39 +0000 |
commit | 32761a6cee1d0dee366b885b7b9c777e67885688 (patch) | |
tree | d6bec92bebfb216f4126356e55518842c2f476a1 /Source/WebCore/html/parser/HTMLScriptRunner.cpp | |
parent | a4e969f4965059196ca948db781e52f7cfebf19e (diff) | |
download | WebKitGtk-tarball-32761a6cee1d0dee366b885b7b9c777e67885688.tar.gz |
webkitgtk-2.4.11webkitgtk-2.4.11
Diffstat (limited to 'Source/WebCore/html/parser/HTMLScriptRunner.cpp')
-rw-r--r-- | Source/WebCore/html/parser/HTMLScriptRunner.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/WebCore/html/parser/HTMLScriptRunner.cpp b/Source/WebCore/html/parser/HTMLScriptRunner.cpp index 498fd1934..41e725f60 100644 --- a/Source/WebCore/html/parser/HTMLScriptRunner.cpp +++ b/Source/WebCore/html/parser/HTMLScriptRunner.cpp @@ -26,6 +26,7 @@ #include "config.h" #include "HTMLScriptRunner.h" +#include "Attribute.h" #include "CachedScript.h" #include "CachedResourceLoader.h" #include "Element.h" @@ -35,7 +36,6 @@ #include "HTMLNames.h" #include "HTMLScriptRunnerHost.h" #include "IgnoreDestructiveWriteCountIncrementer.h" -#include "Microtasks.h" #include "MutationObserver.h" #include "NestingLevelIncrementer.h" #include "NotImplemented.h" @@ -81,7 +81,7 @@ static URL documentURLForScriptExecution(Document* document) return document->frame()->document()->url(); } -inline Ref<Event> createScriptLoadEvent() +inline PassRefPtr<Event> createScriptLoadEvent() { return Event::create(eventNames().loadEvent, false, false); } @@ -130,7 +130,7 @@ void HTMLScriptRunner::executePendingScriptAndDispatchEvent(PendingScript& pendi stopWatchingForLoad(pendingScript); if (!isExecutingScript()) - MicrotaskQueue::mainThreadQueue().performMicrotaskCheckpoint(); + MutationObserver::deliverAllMutations(); // Clear the pending script before possible rentrancy from executeScript() RefPtr<Element> element = pendingScript.releaseElementAndClear(); @@ -294,7 +294,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()) - MicrotaskQueue::mainThreadQueue().performMicrotaskCheckpoint(); + MutationObserver::deliverAllMutations(); InsertionPointRecord insertionPointRecord(m_host.inputStream()); NestingLevelIncrementer nestingLevelIncrementer(m_scriptNestingLevel); |