| Index: Source/core/dom/custom/CustomElementMicrotaskQueue.h
|
| diff --git a/Source/core/dom/custom/CustomElementMicrotaskQueue.h b/Source/core/dom/custom/CustomElementMicrotaskQueue.h
|
| index 4ae22d21bdd43ed7f982b623ba47de423995e831..0fc03c1b23a00796f031c9ae7cff523476a8b50e 100644
|
| --- a/Source/core/dom/custom/CustomElementMicrotaskQueue.h
|
| +++ b/Source/core/dom/custom/CustomElementMicrotaskQueue.h
|
| @@ -34,22 +34,28 @@
|
| #include "core/dom/custom/CustomElementMicrotaskStep.h"
|
| #include "wtf/OwnPtr.h"
|
| #include "wtf/PassOwnPtr.h"
|
| +#include "wtf/PassRefPtr.h"
|
| +#include "wtf/RefCounted.h"
|
| +#include "wtf/RefPtr.h"
|
| #include "wtf/Vector.h"
|
|
|
| namespace WebCore {
|
|
|
| -class CustomElementMicrotaskQueue {
|
| +class CustomElementMicrotaskQueue : public RefCounted<CustomElementMicrotaskQueue> {
|
| WTF_MAKE_NONCOPYABLE(CustomElementMicrotaskQueue);
|
| public:
|
| - CustomElementMicrotaskQueue() { }
|
| + static PassRefPtr<CustomElementMicrotaskQueue> create() { return adoptRef(new CustomElementMicrotaskQueue()); }
|
| +
|
|
|
| - bool isEmpty() { return m_queue.isEmpty(); }
|
| + bool isEmpty() const { return m_queue.isEmpty(); }
|
| void enqueue(PassOwnPtr<CustomElementMicrotaskStep>);
|
|
|
| typedef CustomElementMicrotaskStep::Result Result;
|
| Result dispatch();
|
|
|
| private:
|
| + CustomElementMicrotaskQueue() { }
|
| +
|
| Vector<OwnPtr<CustomElementMicrotaskStep> > m_queue;
|
| };
|
|
|
|
|