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..acaef4de2fd2b1eedcc021431dcdfe26405e2981 100644 |
--- a/Source/core/dom/custom/CustomElementMicrotaskDispatcher.cpp |
+++ b/Source/core/dom/custom/CustomElementMicrotaskDispatcher.cpp |
@@ -10,7 +10,8 @@ |
#include "core/dom/custom/CustomElementCallbackQueue.h" |
#include "core/dom/custom/CustomElementMicrotaskImportStep.h" |
#include "core/dom/custom/CustomElementScheduler.h" |
-#include "core/html/imports/HTMLImport.h" |
+#include "core/dom/custom/RefCountedCustomElementMicrotaskQueue.h" |
+#include "core/html/imports/HTMLImportLoader.h" |
#include "wtf/MainThread.h" |
namespace WebCore { |
@@ -29,12 +30,12 @@ CustomElementMicrotaskDispatcher& CustomElementMicrotaskDispatcher::instance() |
return instance; |
} |
-void CustomElementMicrotaskDispatcher::enqueue(HTMLImport* import, PassOwnPtr<CustomElementMicrotaskStep> step) |
+void CustomElementMicrotaskDispatcher::enqueue(HTMLImportLoader* importLoader, PassOwnPtr<CustomElementMicrotaskStep> step) |
{ |
ASSERT(m_phase == Quiescent || m_phase == DispatchingCallbacks); |
ensureMicrotaskScheduled(); |
- if (import && import->customElementMicrotaskStep()) |
- import->customElementMicrotaskStep()->enqueue(step); |
+ if (importLoader) |
+ importLoader->microtaskQueue()->enqueue(step); |
else |
m_resolutionAndImports.enqueue(step); |
} |