| 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 03e66568685f5141f462152918cd58d6d4650822..59f5a90933636dccb43e229873fdef4472d155e0 100644
|
| --- a/third_party/WebKit/Source/bindings/templates/callback_function.h.tmpl
|
| +++ b/third_party/WebKit/Source/bindings/templates/callback_function.h.tmpl
|
| @@ -20,9 +20,9 @@ class {{exported}}{{cpp_class}} final : public GarbageCollectedFinalized<{{cpp_c
|
| public TraceWrapperBase {
|
|
|
| public:
|
| - static {{cpp_class}}* create(v8::Isolate* isolate, v8::Local<v8::Function> callback)
|
| + static {{cpp_class}}* create(ScriptState* scriptState, v8::Local<v8::Function> callback)
|
| {
|
| - return new {{cpp_class}}(isolate, callback);
|
| + return new {{cpp_class}}(scriptState, callback);
|
| }
|
|
|
| ~{{cpp_class}}() = default;
|
| @@ -44,7 +44,9 @@ public:
|
| }
|
|
|
| private:
|
| - {{cpp_class}}(v8::Isolate* isolate, v8::Local<v8::Function>);
|
| + {{cpp_class}}(ScriptState*, v8::Local<v8::Function>);
|
| +
|
| + RefPtr<ScriptState> m_scriptState;
|
| ScopedPersistent<v8::Function> m_callback;
|
| };
|
|
|
|
|