Index: Source/core/dom/custom/CustomElementMicrotaskDispatcher.h |
diff --git a/Source/core/dom/custom/CustomElementMicrotaskDispatcher.h b/Source/core/dom/custom/CustomElementMicrotaskDispatcher.h |
index a3f7669c94426d2b05ebba69e2bf1c65e59f7ae3..a9cda9f2ef2d3c67555a5bf52f91469ed21c1172 100644 |
--- a/Source/core/dom/custom/CustomElementMicrotaskDispatcher.h |
+++ b/Source/core/dom/custom/CustomElementMicrotaskDispatcher.h |
@@ -6,6 +6,7 @@ |
#define CustomElementMicrotaskDispatcher_h |
#include "core/dom/custom/CustomElementMicrotaskQueue.h" |
+#include "platform/heap/Handle.h" |
#include "wtf/Noncopyable.h" |
#include "wtf/PassOwnPtr.h" |
#include "wtf/Vector.h" |
@@ -17,20 +18,22 @@ class CustomElementMicrotaskImportStep; |
class CustomElementMicrotaskStep; |
class HTMLImportLoader; |
-class CustomElementMicrotaskDispatcher { |
+class CustomElementMicrotaskDispatcher FINAL : public NoBaseWillBeGarbageCollectedFinalized<CustomElementMicrotaskDispatcher> { |
WTF_MAKE_NONCOPYABLE(CustomElementMicrotaskDispatcher); |
public: |
~CustomElementMicrotaskDispatcher() { } |
static CustomElementMicrotaskDispatcher& instance(); |
- void enqueue(HTMLImportLoader*, PassOwnPtr<CustomElementMicrotaskStep>); |
+ void enqueue(HTMLImportLoader*, PassOwnPtrWillBeRawPtr<CustomElementMicrotaskStep>); |
void enqueue(CustomElementCallbackQueue*); |
void importDidFinish(CustomElementMicrotaskImportStep*); |
bool elementQueueIsEmpty() { return m_elements.isEmpty(); } |
+ void trace(Visitor*); |
+ |
#if !defined(NDEBUG) |
void show(); |
#endif |
@@ -50,8 +53,8 @@ private: |
DispatchingCallbacks |
} m_phase; |
- RefPtr<CustomElementMicrotaskQueue> m_resolutionAndImports; |
- Vector<CustomElementCallbackQueue*> m_elements; |
+ RefPtrWillBeMember<CustomElementMicrotaskQueue> m_resolutionAndImports; |
+ WillBeHeapVector<RawPtrWillBeMember<CustomElementCallbackQueue> > m_elements; |
}; |
} |