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: third_party/WebKit/Source/bindings/core/v8/V8AbstractEventListener.cpp

Issue 2474693002: [wrapper-tracing] Support for incrementally tracing ScopedPersistent (Closed)
Patch Set: Added bailout for tests when the flag is off Created 4 years, 1 month 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: third_party/WebKit/Source/bindings/core/v8/V8AbstractEventListener.cpp
diff --git a/third_party/WebKit/Source/bindings/core/v8/V8AbstractEventListener.cpp b/third_party/WebKit/Source/bindings/core/v8/V8AbstractEventListener.cpp
index c4b135f9dbc4e8ec87f1900ff0eab4b7625521fe..46886c70f8619b437939a58f9c983401b3054c3c 100644
--- a/third_party/WebKit/Source/bindings/core/v8/V8AbstractEventListener.cpp
+++ b/third_party/WebKit/Source/bindings/core/v8/V8AbstractEventListener.cpp
@@ -46,6 +46,7 @@ V8AbstractEventListener::V8AbstractEventListener(bool isAttribute,
DOMWrapperWorld& world,
v8::Isolate* isolate)
: EventListener(JSEventListenerType),
+ m_listener(nullptr),
m_isAttribute(isAttribute),
m_world(world),
m_isolate(isolate),
@@ -226,7 +227,7 @@ DEFINE_TRACE(V8AbstractEventListener) {
}
DEFINE_TRACE_WRAPPERS(V8AbstractEventListener) {
- visitor->traceWrappers(&m_listener);
+ visitor->traceWrappers(m_listener.cast<v8::Value>());
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698