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

Unified Diff: third_party/WebKit/Source/bindings/tests/results/core/VoidCallbackFunctionInterfaceArg.h

Issue 2458573002: bindings: Store ScriptState in generated callback functions (Closed)
Patch Set: Created 4 years, 2 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: third_party/WebKit/Source/bindings/tests/results/core/VoidCallbackFunctionInterfaceArg.h
diff --git a/third_party/WebKit/Source/bindings/tests/results/core/VoidCallbackFunctionInterfaceArg.h b/third_party/WebKit/Source/bindings/tests/results/core/VoidCallbackFunctionInterfaceArg.h
index caff097c27d6c228c8bc80f0e06a9a46513556a9..22a4f91b7f524110adcc28c55088de27cf620452 100644
--- a/third_party/WebKit/Source/bindings/tests/results/core/VoidCallbackFunctionInterfaceArg.h
+++ b/third_party/WebKit/Source/bindings/tests/results/core/VoidCallbackFunctionInterfaceArg.h
@@ -23,9 +23,9 @@ class HTMLDivElement;
class CORE_EXPORT VoidCallbackFunctionInterfaceArg final : public GarbageCollectedFinalized<VoidCallbackFunctionInterfaceArg>,
public TraceWrapperBase {
public:
- static VoidCallbackFunctionInterfaceArg* create(v8::Isolate* isolate, v8::Local<v8::Function> callback)
+ static VoidCallbackFunctionInterfaceArg* create(ScriptState* scriptState, v8::Local<v8::Function> callback)
{
- return new VoidCallbackFunctionInterfaceArg(isolate, callback);
+ return new VoidCallbackFunctionInterfaceArg(scriptState, callback);
}
~VoidCallbackFunctionInterfaceArg() = default;
@@ -33,7 +33,7 @@ public:
DECLARE_TRACE();
DECLARE_TRACE_WRAPPERS();
- bool call(ScriptState* scriptState, ScriptWrappable* scriptWrappable, HTMLDivElement* divElement);
+ bool call(ScriptWrappable* scriptWrappable, HTMLDivElement* divElement);
v8::Local<v8::Function> v8Value(v8::Isolate* isolate)
{
@@ -47,7 +47,9 @@ public:
}
private:
- VoidCallbackFunctionInterfaceArg(v8::Isolate* isolate, v8::Local<v8::Function>);
+ VoidCallbackFunctionInterfaceArg(ScriptState*, v8::Local<v8::Function>);
+
+ RefPtr<ScriptState> m_scriptState;
ScopedPersistent<v8::Function> m_callback;
};

Powered by Google App Engine
This is Rietveld 408576698