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

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

Issue 296703009: Oilpan: move custom element objects to the heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix compilation issue pointed out by clang 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/CustomElementCallbackQueue.cpp
diff --git a/Source/core/dom/custom/CustomElementCallbackQueue.cpp b/Source/core/dom/custom/CustomElementCallbackQueue.cpp
index fe74598f9b85b95e2e1b75b4054de70f12f691ee..d20bb901174d21f44624ec221933940a34b5d999 100644
--- a/Source/core/dom/custom/CustomElementCallbackQueue.cpp
+++ b/Source/core/dom/custom/CustomElementCallbackQueue.cpp
@@ -33,12 +33,12 @@
namespace WebCore {
-PassOwnPtr<CustomElementCallbackQueue> CustomElementCallbackQueue::create(PassRefPtr<Element> element)
+PassOwnPtrWillBeRawPtr<CustomElementCallbackQueue> CustomElementCallbackQueue::create(PassRefPtrWillBeRawPtr<Element> element)
{
- return adoptPtr(new CustomElementCallbackQueue(element));
+ return adoptPtrWillBeNoop(new CustomElementCallbackQueue(element));
}
-CustomElementCallbackQueue::CustomElementCallbackQueue(PassRefPtr<Element> element)
+CustomElementCallbackQueue::CustomElementCallbackQueue(PassRefPtrWillBeRawPtr<Element> element)
: m_element(element)
, m_owner(-1)
, m_index(0)
@@ -72,4 +72,9 @@ bool CustomElementCallbackQueue::processInElementQueue(ElementQueueId caller)
return didWork;
}
+void CustomElementCallbackQueue::trace(Visitor* visitor)
+{
+ visitor->trace(m_element);
+}
+
} // namespace WebCore
« no previous file with comments | « Source/core/dom/custom/CustomElementCallbackQueue.h ('k') | Source/core/dom/custom/CustomElementDescriptor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698