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

Unified Diff: Source/core/dom/custom/CustomElementMicrotaskQueue.cpp

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/CustomElementMicrotaskQueue.cpp
diff --git a/Source/core/dom/custom/CustomElementMicrotaskQueue.cpp b/Source/core/dom/custom/CustomElementMicrotaskQueue.cpp
index 236cc54517e4b50ba8a234fc1f357ed1f97ea2c3..df29d66591525af4cd3722a2125ab77112376179 100644
--- a/Source/core/dom/custom/CustomElementMicrotaskQueue.cpp
+++ b/Source/core/dom/custom/CustomElementMicrotaskQueue.cpp
@@ -75,7 +75,7 @@ private:
MicrotaskQueueInvocationScope* MicrotaskQueueInvocationScope::s_top = 0;
#endif
-void CustomElementMicrotaskQueue::enqueue(PassOwnPtr<CustomElementMicrotaskStep> step)
+void CustomElementMicrotaskQueue::enqueue(PassOwnPtrWillBeRawPtr<CustomElementMicrotaskStep> step)
{
m_queue.append(step);
}
@@ -83,7 +83,7 @@ void CustomElementMicrotaskQueue::enqueue(PassOwnPtr<CustomElementMicrotaskStep>
CustomElementMicrotaskStep::Result CustomElementMicrotaskQueue::dispatch()
{
MicrotaskQueueInvocationScope scope(this);
- Vector<OwnPtr<CustomElementMicrotaskStep> > remaining;
+ WillBeHeapVector<OwnPtrWillBeMember<CustomElementMicrotaskStep> > remaining;
Result accumulatedResult = CustomElementMicrotaskStep::ContinueWithRemoving;
unsigned i;
@@ -113,6 +113,11 @@ bool CustomElementMicrotaskQueue::needsProcessOrStop() const
return false;
}
+void CustomElementMicrotaskQueue::trace(Visitor* visitor)
+{
+ visitor->trace(m_queue);
+}
+
#if !defined(NDEBUG)
void CustomElementMicrotaskQueue::show(unsigned indent)
{

Powered by Google App Engine
This is Rietveld 408576698