Index: Source/bindings/core/v8/V8AbstractEventListener.h |
diff --git a/Source/bindings/core/v8/V8AbstractEventListener.h b/Source/bindings/core/v8/V8AbstractEventListener.h |
index dc609751121607b7795e3ecfad8b1b0fd4bcf2e5..cd3a4126cfa3a05484029a6beb01eba158a4c0c9 100644 |
--- a/Source/bindings/core/v8/V8AbstractEventListener.h |
+++ b/Source/bindings/core/v8/V8AbstractEventListener.h |
@@ -81,7 +81,7 @@ public: |
// as it may attempt to compile a function (lazy event listener), get an error |
// and invoke onerror callback which can execute arbitrary JS code. |
// Protect this event listener to keep it alive. |
- RefPtr<V8AbstractEventListener> guard(this); |
+ RefPtrWillBeRawPtr<V8AbstractEventListener> protect(this); |
prepareListenerObject(executionContext); |
return m_listener.newLocal(m_isolate); |
} |
@@ -112,6 +112,11 @@ public: |
v8::Isolate* isolate() const { return m_isolate; } |
DOMWrapperWorld& world() const { return *m_world; } |
+ DEFINE_INLINE_VIRTUAL_TRACE() |
+ { |
+ EventListener::trace(visitor); |
+ } |
+ |
protected: |
V8AbstractEventListener(bool isAttribute, DOMWrapperWorld&, v8::Isolate*); |