Index: Source/bindings/core/v8/V8LazyEventListener.h |
diff --git a/Source/bindings/core/v8/V8LazyEventListener.h b/Source/bindings/core/v8/V8LazyEventListener.h |
index 32fc97a93cece1b927da56e07ab28c967587104c..0bf91091c95db63f73e76ecd0405b83dbf1d41bb 100644 |
--- a/Source/bindings/core/v8/V8LazyEventListener.h |
+++ b/Source/bindings/core/v8/V8LazyEventListener.h |
@@ -45,9 +45,15 @@ class Node; |
// A V8LazyEventListener is either a HTML or SVG event handler. |
class V8LazyEventListener final : public V8AbstractEventListener { |
public: |
- static PassRefPtr<V8LazyEventListener> create(const AtomicString& functionName, const AtomicString& eventParameterName, const String& code, const String& sourceURL, const TextPosition& position, Node* node, v8::Isolate* isolate) |
+ static PassRefPtrWillBeRawPtr<V8LazyEventListener> create(const AtomicString& functionName, const AtomicString& eventParameterName, const String& code, const String& sourceURL, const TextPosition& position, Node* node, v8::Isolate* isolate) |
{ |
- return adoptRef(new V8LazyEventListener(isolate, functionName, eventParameterName, code, sourceURL, position, node)); |
+ return adoptRefWillBeNoop(new V8LazyEventListener(isolate, functionName, eventParameterName, code, sourceURL, position, node)); |
+ } |
+ |
+ DEFINE_INLINE_VIRTUAL_TRACE() |
+ { |
+ visitor->trace(m_node); |
+ V8AbstractEventListener::trace(visitor); |
} |
protected: |
@@ -68,7 +74,7 @@ private: |
AtomicString m_eventParameterName; |
String m_code; |
String m_sourceURL; |
- Node* m_node; |
+ RawPtrWillBeMember<Node> m_node; |
TextPosition m_position; |
}; |