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

Unified Diff: Source/bindings/core/v8/ScriptFunction.cpp

Issue 1071963002: Replace Handle<> with Local<> in bindings/core/v8 (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 8 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
« no previous file with comments | « Source/bindings/core/v8/ScriptFunction.h ('k') | Source/bindings/core/v8/ScriptString.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/core/v8/ScriptFunction.cpp
diff --git a/Source/bindings/core/v8/ScriptFunction.cpp b/Source/bindings/core/v8/ScriptFunction.cpp
index bebc08af4c3d1f738461f791195f1d3f8de4f39b..519436235d82091d5575b7c4331e201c01cb1f76 100644
--- a/Source/bindings/core/v8/ScriptFunction.cpp
+++ b/Source/bindings/core/v8/ScriptFunction.cpp
@@ -9,10 +9,10 @@
namespace blink {
-v8::Handle<v8::Function> ScriptFunction::bindToV8Function()
+v8::Local<v8::Function> ScriptFunction::bindToV8Function()
{
v8::Isolate* isolate = m_scriptState->isolate();
- v8::Handle<v8::External> wrapper = v8::External::New(isolate, this);
+ v8::Local<v8::External> wrapper = v8::External::New(isolate, this);
m_scriptState->world().registerDOMObjectHolder(isolate, this, wrapper);
return createClosure(&ScriptFunction::callCallback, wrapper, isolate);
}
@@ -20,7 +20,7 @@ v8::Handle<v8::Function> ScriptFunction::bindToV8Function()
void ScriptFunction::callCallback(const v8::FunctionCallbackInfo<v8::Value>& args)
{
ASSERT(args.Data()->IsExternal());
- ScriptFunction* scriptFunction = static_cast<ScriptFunction*>(v8::Handle<v8::External>::Cast(args.Data())->Value());
+ ScriptFunction* scriptFunction = static_cast<ScriptFunction*>(v8::Local<v8::External>::Cast(args.Data())->Value());
ScriptValue result = scriptFunction->call(ScriptValue(scriptFunction->scriptState(), args[0]));
v8SetReturnValue(args, result.v8Value());
}
« no previous file with comments | « Source/bindings/core/v8/ScriptFunction.h ('k') | Source/bindings/core/v8/ScriptString.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698