Index: third_party/WebKit/Source/bindings/templates/callback_function.h.tmpl |
diff --git a/third_party/WebKit/Source/bindings/templates/callback_function.h.tmpl b/third_party/WebKit/Source/bindings/templates/callback_function.h.tmpl |
index 52a6e0aa55e0bd3cc8418f1b068960df10605789..03e66568685f5141f462152918cd58d6d4650822 100644 |
--- a/third_party/WebKit/Source/bindings/templates/callback_function.h.tmpl |
+++ b/third_party/WebKit/Source/bindings/templates/callback_function.h.tmpl |
@@ -16,7 +16,8 @@ class ScriptState; |
class {{forward_declaration}}; |
{% endfor %} |
-class {{exported}}{{cpp_class}} final : public GarbageCollectedFinalized<{{cpp_class}}> { |
+class {{exported}}{{cpp_class}} final : public GarbageCollectedFinalized<{{cpp_class}}>, |
+ public TraceWrapperBase { |
Michael Lippautz
2016/10/19 12:20:21
If you think that the extra vtable ptr is too much
haraken
2016/10/19 12:32:38
I don't think sizeof(callback function) really mat
Michael Lippautz
2016/10/19 13:13:14
Sure; ElementRareData and similar classes are part
Marcel Hlopko
2016/10/19 15:08:17
To reiterate what Michael is saying, if a class is
haraken
2016/10/19 15:31:43
Thanks for the clarification -- yes, TraceWrappers
Michael Lippautz
2016/10/19 15:44:35
Acknowledged.
|
public: |
static {{cpp_class}}* create(v8::Isolate* isolate, v8::Local<v8::Function> callback) |
@@ -27,6 +28,7 @@ public: |
~{{cpp_class}}() = default; |
DECLARE_TRACE(); |
+ DECLARE_TRACE_WRAPPERS(); |
bool call({{argument_declarations | join(', ')}}); |