summaryrefslogtreecommitdiff
path: root/Source/WebCore/bindings/js/JSInjectedScriptHostCustom.cpp
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@nokia.com>2012-02-09 14:16:12 +0100
committerSimon Hausmann <simon.hausmann@nokia.com>2012-02-09 14:16:12 +0100
commit03e12282df9aa1e1fb05a8b90f1cfc2e08764cec (patch)
tree52599cd0ab782b1768e23ad176f7618f98333cb6 /Source/WebCore/bindings/js/JSInjectedScriptHostCustom.cpp
parentcd44dc59cdfc39534aef4d417e9f3c412e3be139 (diff)
downloadqtwebkit-03e12282df9aa1e1fb05a8b90f1cfc2e08764cec.tar.gz
Imported WebKit commit e09a82039aa4273ab318b71122e92d8e5f233525 (http://svn.webkit.org/repository/webkit/trunk@107223)
Diffstat (limited to 'Source/WebCore/bindings/js/JSInjectedScriptHostCustom.cpp')
-rw-r--r--Source/WebCore/bindings/js/JSInjectedScriptHostCustom.cpp22
1 files changed, 0 insertions, 22 deletions
diff --git a/Source/WebCore/bindings/js/JSInjectedScriptHostCustom.cpp b/Source/WebCore/bindings/js/JSInjectedScriptHostCustom.cpp
index 0320c1834..73cb2fa7e 100644
--- a/Source/WebCore/bindings/js/JSInjectedScriptHostCustom.cpp
+++ b/Source/WebCore/bindings/js/JSInjectedScriptHostCustom.cpp
@@ -76,28 +76,6 @@ ScriptValue InjectedScriptHost::nodeAsScriptValue(ScriptState* state, Node* node
return ScriptValue(state->globalData(), toJS(state, deprecatedGlobalObjectForPrototype(state), node));
}
-JSValue JSInjectedScriptHost::evaluate(ExecState* exec)
-{
- JSValue expression = exec->argument(0);
- if (!expression.isString())
- return throwError(exec, createError(exec, "String argument expected."));
- JSGlobalObject* globalObject = exec->lexicalGlobalObject();
- JSFunction* evalFunction = globalObject->evalFunction();
- CallData callData;
- CallType callType = evalFunction->methodTable()->getCallData(evalFunction, callData);
- if (callType == CallTypeNone)
- return jsUndefined();
- MarkedArgumentBuffer args;
- args.append(expression);
-
- bool wasEvalEnabled = globalObject->evalEnabled();
- globalObject->setEvalEnabled(true);
- JSValue result = JSC::call(exec, evalFunction, callType, callData, exec->globalThisValue(), args);
- globalObject->setEvalEnabled(wasEvalEnabled);
-
- return result;
-}
-
JSValue JSInjectedScriptHost::inspectedNode(ExecState* exec)
{
if (exec->argumentCount() < 1)