summaryrefslogtreecommitdiff
path: root/Source/WebCore/html/parser/HTMLScriptRunner.cpp
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@lorry>2016-04-10 09:28:39 +0000
committerLorry Tar Creator <lorry-tar-importer@lorry>2016-04-10 09:28:39 +0000
commit32761a6cee1d0dee366b885b7b9c777e67885688 (patch)
treed6bec92bebfb216f4126356e55518842c2f476a1 /Source/WebCore/html/parser/HTMLScriptRunner.cpp
parenta4e969f4965059196ca948db781e52f7cfebf19e (diff)
downloadWebKitGtk-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.cpp8
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);