Index: Source/bindings/core/v8/PrivateScriptRunner.cpp |
diff --git a/Source/bindings/core/v8/PrivateScriptRunner.cpp b/Source/bindings/core/v8/PrivateScriptRunner.cpp |
index bf1dc50bed2a4b7972e16ca98c00d7f0808164ec..c7f8958dc59ba92723ea6b9345a2db5eb53164db 100644 |
--- a/Source/bindings/core/v8/PrivateScriptRunner.cpp |
+++ b/Source/bindings/core/v8/PrivateScriptRunner.cpp |
@@ -64,12 +64,12 @@ static v8::Handle<v8::Value> propertyValue(ScriptState* scriptState, String clas |
return v8::Handle<v8::Object>::Cast(compiledClass)->Get(v8String(isolate, propertyName)); |
} |
-v8::Handle<v8::Value> PrivateScriptRunner::runDOMMethod(ScriptState* scriptState, String className, String operationName, v8::Handle<v8::Value> holder, int argc, v8::Handle<v8::Value> argv[]) |
+v8::Handle<v8::Value> PrivateScriptRunner::run(ScriptState* scriptState, String className, String functionName, v8::Handle<v8::Value> holder, int argc, v8::Handle<v8::Value> argv[]) |
{ |
- v8::Handle<v8::Value> operation = propertyValue(scriptState, className, operationName); |
- RELEASE_ASSERT(!operation.IsEmpty()); |
- RELEASE_ASSERT(operation->IsFunction()); |
- return V8ScriptRunner::callFunction(v8::Handle<v8::Function>::Cast(operation), scriptState->executionContext(), holder, argc, argv, scriptState->isolate()); |
+ v8::Handle<v8::Value> function = propertyValue(scriptState, className, functionName); |
+ RELEASE_ASSERT(!function.IsEmpty()); |
+ RELEASE_ASSERT(function->IsFunction()); |
+ return V8ScriptRunner::callFunction(v8::Handle<v8::Function>::Cast(function), scriptState->executionContext(), holder, argc, argv, scriptState->isolate()); |
} |
} // namespace WebCore |