Index: Source/core/dom/custom/CustomElementMicrotaskDispatcher.cpp |
diff --git a/Source/core/dom/custom/CustomElementMicrotaskDispatcher.cpp b/Source/core/dom/custom/CustomElementMicrotaskDispatcher.cpp |
index 5337da3359835fb8512eaecab54cf2cf28eed2b5..fa515c5d91d862a06fa982202119b9244757d386 100644 |
--- a/Source/core/dom/custom/CustomElementMicrotaskDispatcher.cpp |
+++ b/Source/core/dom/custom/CustomElementMicrotaskDispatcher.cpp |
@@ -11,6 +11,7 @@ |
#include "core/dom/custom/CustomElementMicrotaskImportStep.h" |
#include "core/dom/custom/CustomElementScheduler.h" |
#include "core/html/imports/HTMLImport.h" |
+#include "platform/Task.h" |
#include "wtf/MainThread.h" |
namespace WebCore { |
@@ -56,7 +57,7 @@ void CustomElementMicrotaskDispatcher::importDidFinish(CustomElementMicrotaskImp |
void CustomElementMicrotaskDispatcher::ensureMicrotaskScheduled() |
{ |
if (!m_hasScheduledMicrotask) { |
- Microtask::enqueueMicrotask(&dispatch); |
+ Microtask::enqueueMicrotask(new Task(WTF::bind(&dispatch))); |
m_hasScheduledMicrotask = true; |
} |
} |