summaryrefslogtreecommitdiffstats
path: root/WebCore/bindings/js/JSMessageEventCustom.cpp
diff options
context:
space:
mode:
authorLeon Clarke <leonclarke@google.com>2010-06-03 14:33:32 +0100
committerLeon Clarke <leonclarke@google.com>2010-06-08 12:24:51 +0100
commit5af96e2c7b73ebc627c6894727826a7576d31758 (patch)
treef9d5e6f6175ccd7e3d14de9b290f08937a0d17ba /WebCore/bindings/js/JSMessageEventCustom.cpp
parent8cc4fcf4f6adcbc0e0aebfc24fbad9a4cddf2cfb (diff)
downloadexternal_webkit-5af96e2c7b73ebc627c6894727826a7576d31758.zip
external_webkit-5af96e2c7b73ebc627c6894727826a7576d31758.tar.gz
external_webkit-5af96e2c7b73ebc627c6894727826a7576d31758.tar.bz2
Merge webkit.org at r60469 : Initial merge by git.
Change-Id: I66a0047aa2af802f66bb0c7f2a8b02247a596234
Diffstat (limited to 'WebCore/bindings/js/JSMessageEventCustom.cpp')
-rw-r--r--WebCore/bindings/js/JSMessageEventCustom.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/WebCore/bindings/js/JSMessageEventCustom.cpp b/WebCore/bindings/js/JSMessageEventCustom.cpp
index fc1f542..b3dabae 100644
--- a/WebCore/bindings/js/JSMessageEventCustom.cpp
+++ b/WebCore/bindings/js/JSMessageEventCustom.cpp
@@ -54,19 +54,19 @@ JSValue JSMessageEvent::ports(ExecState* exec) const
return constructArray(exec, list);
}
-JSC::JSValue JSMessageEvent::initMessageEvent(JSC::ExecState* exec, const JSC::ArgList& args)
+JSC::JSValue JSMessageEvent::initMessageEvent(JSC::ExecState* exec)
{
- const UString& typeArg = args.at(0).toString(exec);
- bool canBubbleArg = args.at(1).toBoolean(exec);
- bool cancelableArg = args.at(2).toBoolean(exec);
- PassRefPtr<SerializedScriptValue> dataArg = SerializedScriptValue::create(exec, args.at(3));
- const UString& originArg = args.at(4).toString(exec);
- const UString& lastEventIdArg = args.at(5).toString(exec);
- DOMWindow* sourceArg = toDOMWindow(args.at(6));
+ const UString& typeArg = exec->argument(0).toString(exec);
+ bool canBubbleArg = exec->argument(1).toBoolean(exec);
+ bool cancelableArg = exec->argument(2).toBoolean(exec);
+ PassRefPtr<SerializedScriptValue> dataArg = SerializedScriptValue::create(exec, exec->argument(3));
+ const UString& originArg = exec->argument(4).toString(exec);
+ const UString& lastEventIdArg = exec->argument(5).toString(exec);
+ DOMWindow* sourceArg = toDOMWindow(exec->argument(6));
OwnPtr<MessagePortArray> messagePorts;
- if (!args.at(7).isUndefinedOrNull()) {
+ if (!exec->argument(7).isUndefinedOrNull()) {
messagePorts = new MessagePortArray();
- fillMessagePortArray(exec, args.at(7), *messagePorts);
+ fillMessagePortArray(exec, exec->argument(7), *messagePorts);
if (exec->hadException())
return jsUndefined();
}