diff options
Diffstat (limited to 'WebCore/bindings/js/JSInjectedScriptHostCustom.cpp')
-rw-r--r-- | WebCore/bindings/js/JSInjectedScriptHostCustom.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/WebCore/bindings/js/JSInjectedScriptHostCustom.cpp b/WebCore/bindings/js/JSInjectedScriptHostCustom.cpp index 9cf4604..de72dea 100644 --- a/WebCore/bindings/js/JSInjectedScriptHostCustom.cpp +++ b/WebCore/bindings/js/JSInjectedScriptHostCustom.cpp @@ -95,7 +95,6 @@ ScriptObject InjectedScriptHost::createInjectedScript(const String& source, Scri args.append(toJS(scriptState, globalObject, this)); args.append(globalThisValue); args.append(jsNumber(id)); - args.append(jsString(scriptState, String("JSC"))); JSValue result = JSC::call(scriptState, functionValue, callType, callData, globalThisValue, args); if (result.isObject()) return ScriptObject(scriptState, result.getObject()); @@ -137,6 +136,15 @@ JSValue JSInjectedScriptHost::nodeForId(ExecState* exec) return toJS(exec, node); } +JSValue JSInjectedScriptHost::internalConstructorName(ExecState* exec) +{ + if (exec->argumentCount() < 1) + return jsUndefined(); + + UString result = exec->argument(0).toThisObject(exec)->className(); + return jsString(exec, result); +} + JSValue JSInjectedScriptHost::pushNodePathToFrontend(ExecState* exec) { if (exec->argumentCount() < 3) |