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

Unified Diff: Source/core/events/EventListener.h

Issue 1238083002: Oilpan: Move the EventListener hierarchy to Oilpan's heap (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 5 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/events/EventListener.h
diff --git a/Source/core/events/EventListener.h b/Source/core/events/EventListener.h
index 981032d8faf13d55688fb823104bf42ef89fd42e..563d3fb1ca470051fdaff4546bc0f7947a237386 100644
--- a/Source/core/events/EventListener.h
+++ b/Source/core/events/EventListener.h
@@ -22,6 +22,7 @@
#define EventListener_h
#include "core/CoreExport.h"
+#include "platform/heap/Handle.h"
#include "wtf/RefCounted.h"
namespace blink {
@@ -29,7 +30,7 @@ namespace blink {
class Event;
class ExecutionContext;
- class CORE_EXPORT EventListener : public RefCounted<EventListener> {
+ class CORE_EXPORT EventListener : public RefCountedWillBeGarbageCollectedFinalized<EventListener> {
public:
enum Type {
JSEventListenerType,
@@ -48,6 +49,8 @@ namespace blink {
bool isAttribute() const { return virtualisAttribute(); }
Type type() const { return m_type; }
+ DEFINE_INLINE_VIRTUAL_TRACE() { }
+
protected:
explicit EventListener(Type type)
: m_type(type)

Powered by Google App Engine
This is Rietveld 408576698