| Index: Source/bindings/v8/custom/V8DeviceOrientationEventCustom.cpp
|
| diff --git a/Source/bindings/v8/custom/V8DeviceOrientationEventCustom.cpp b/Source/bindings/v8/custom/V8DeviceOrientationEventCustom.cpp
|
| index 38929a8d77fa081ce518bac6018d5bfc157c03d7..ef2a0a92e485e7d364dfbc757611f0aa5a172971 100644
|
| --- a/Source/bindings/v8/custom/V8DeviceOrientationEventCustom.cpp
|
| +++ b/Source/bindings/v8/custom/V8DeviceOrientationEventCustom.cpp
|
| @@ -32,22 +32,22 @@
|
|
|
| namespace WebCore {
|
|
|
| -void V8DeviceOrientationEvent::initDeviceOrientationEventMethodCustom(const v8::FunctionCallbackInfo<v8::Value>& args)
|
| +void V8DeviceOrientationEvent::initDeviceOrientationEventMethodCustom(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| - DeviceOrientationEvent* imp = V8DeviceOrientationEvent::toNative(args.Holder());
|
| - V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, type, args[0]);
|
| - bool bubbles = args[1]->BooleanValue();
|
| - bool cancelable = args[2]->BooleanValue();
|
| + DeviceOrientationEvent* imp = V8DeviceOrientationEvent::toNative(info.Holder());
|
| + V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, type, info[0]);
|
| + bool bubbles = info[1]->BooleanValue();
|
| + bool cancelable = info[2]->BooleanValue();
|
| // If alpha, beta, gamma or absolute are null or undefined, mark them as not provided.
|
| // Otherwise, use the standard JavaScript conversion.
|
| - bool alphaProvided = !isUndefinedOrNull(args[3]);
|
| - double alpha = args[3]->NumberValue();
|
| - bool betaProvided = !isUndefinedOrNull(args[4]);
|
| - double beta = args[4]->NumberValue();
|
| - bool gammaProvided = !isUndefinedOrNull(args[5]);
|
| - double gamma = args[5]->NumberValue();
|
| - bool absoluteProvided = !isUndefinedOrNull(args[6]);
|
| - bool absolute = args[6]->BooleanValue();
|
| + bool alphaProvided = !isUndefinedOrNull(info[3]);
|
| + double alpha = info[3]->NumberValue();
|
| + bool betaProvided = !isUndefinedOrNull(info[4]);
|
| + double beta = info[4]->NumberValue();
|
| + bool gammaProvided = !isUndefinedOrNull(info[5]);
|
| + double gamma = info[5]->NumberValue();
|
| + bool absoluteProvided = !isUndefinedOrNull(info[6]);
|
| + bool absolute = info[6]->BooleanValue();
|
| RefPtr<DeviceOrientationData> orientation = DeviceOrientationData::create(alphaProvided, alpha, betaProvided, beta, gammaProvided, gamma, absoluteProvided, absolute);
|
| imp->initDeviceOrientationEvent(type, bubbles, cancelable, orientation.get());
|
| }
|
|
|