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) |