Index: third_party/WebKit/Source/bindings/templates/callback_function.cpp.tmpl |
diff --git a/third_party/WebKit/Source/bindings/templates/callback_function.cpp.tmpl b/third_party/WebKit/Source/bindings/templates/callback_function.cpp.tmpl |
index ecf618e362ab4a4ebc7ca4369ceabf67c2288b65..d5c90f1200a685ff3962f989ab656d9f9c0efc5b 100644 |
--- a/third_party/WebKit/Source/bindings/templates/callback_function.cpp.tmpl |
+++ b/third_party/WebKit/Source/bindings/templates/callback_function.cpp.tmpl |
@@ -22,6 +22,11 @@ DEFINE_TRACE({{cpp_class}}) |
{ |
} |
+DEFINE_TRACE_WRAPPERS({{cpp_class}}) |
+{ |
+ visitor->traceWrappers(&reinterpret_cast<ScopedPersistent<v8::Object>&>(const_cast<ScopedPersistent<v8::Function>&>(m_callback))); |
Marcel Hlopko
2016/10/19 15:08:17
Kentaro, just to be sure, should really each blink
Michael Lippautz
2016/10/19 15:13:41
This infra merely adds the capability of blink cal
haraken
2016/10/19 15:31:43
In almost all cases, the spec requires to add a st
haraken
2016/10/19 15:31:43
Can we add an overloaded function to traceWrappers
Michael Lippautz
2016/10/19 15:44:34
traceWrappers is overloaded with the two basic v8
Michael Lippautz
2016/10/19 15:44:35
Acknowledged.
|
+} |
+ |
bool {{cpp_class}}::call({{argument_declarations | join(', ')}}) |
{ |
if (!scriptState->contextIsValid()) |