Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(756)

Unified Diff: Source/core/dom/custom/CustomElementMicrotaskDispatcher.h

Issue 296703009: Oilpan: move custom element objects to the heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Use LinkedHashSet for ElementSet instead. Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;
};
}

Powered by Google App Engine
This is Rietveld 408576698