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

Unified Diff: Source/bindings/core/v8/V8AbstractEventListener.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/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*);

Powered by Google App Engine
This is Rietveld 408576698