#include "core/dom/custom/CustomElementCallbackDispatcher.h"
#include "core/dom/custom/CustomElementCallbackQueue.h"
+#include "core/dom/custom/CustomElementScheduler.h"
#include "wtf/MainThread.h"
-namespace WebCore {
+namespace blink {
size_t CustomElementCallbackDispatcher::s_elementQueueStart = 0;
// Pop the element queue from the processing stack
m_flattenedProcessingStack.resize(start);
s_elementQueueEnd = start;
+
+ if (s_elementQueueStart == kNumSentinels)
+ CustomElementScheduler::callbackDispatcherDidFinish();
}
void CustomElementCallbackDispatcher::enqueue(CustomElementCallbackQueue* callbackQueue)
++s_elementQueueEnd;
}
-} // namespace WebCore
+} // namespace blink