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

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

Issue 362993004: Implement Blink-in-JS for DOM attributes (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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: 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

Powered by Google App Engine
This is Rietveld 408576698