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

Unified Diff: third_party/WebKit/Source/bindings/tests/results/core/VoidCallbackFunctionTypedef.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/tests/results/core/VoidCallbackFunctionTypedef.cpp
diff --git a/third_party/WebKit/Source/bindings/tests/results/core/VoidCallbackFunctionTypedef.cpp b/third_party/WebKit/Source/bindings/tests/results/core/VoidCallbackFunctionTypedef.cpp
index 13fb787decc2ae64e7a1d222f06c23424abc99bc..0febaa0ac44574b189ddd8a928133b49ea4641b1 100644
--- a/third_party/WebKit/Source/bindings/tests/results/core/VoidCallbackFunctionTypedef.cpp
+++ b/third_party/WebKit/Source/bindings/tests/results/core/VoidCallbackFunctionTypedef.cpp
@@ -19,7 +19,7 @@ namespace blink {
VoidCallbackFunctionTypedef::VoidCallbackFunctionTypedef(ScriptState* scriptState, v8::Local<v8::Function> callback)
: m_scriptState(scriptState),
- m_callback(scriptState->isolate(), callback) {
+ m_callback(scriptState->isolate(), this, callback) {
DCHECK(!m_callback.isEmpty());
m_callback.setPhantom();
}
@@ -27,7 +27,7 @@ VoidCallbackFunctionTypedef::VoidCallbackFunctionTypedef(ScriptState* scriptStat
DEFINE_TRACE(VoidCallbackFunctionTypedef) {}
DEFINE_TRACE_WRAPPERS(VoidCallbackFunctionTypedef) {
- visitor->traceWrappers(&m_callback.cast<v8::Object>());
+ visitor->traceWrappers(m_callback.cast<v8::Value>());
}
bool VoidCallbackFunctionTypedef::call(ScriptWrappable* scriptWrappable, const String& arg) {

Powered by Google App Engine
This is Rietveld 408576698