Chromium Code Reviews| Index: Source/modules/device_orientation/DeviceOrientationEvent.cpp |
| diff --git a/Source/modules/device_orientation/DeviceOrientationEvent.cpp b/Source/modules/device_orientation/DeviceOrientationEvent.cpp |
| index 50edaf4eab1d42e190b5f817c485947d0d9d114e..7db9e3921c6d9423a4276aada23e36b37e57d210 100644 |
| --- a/Source/modules/device_orientation/DeviceOrientationEvent.cpp |
| +++ b/Source/modules/device_orientation/DeviceOrientationEvent.cpp |
| @@ -45,13 +45,13 @@ DeviceOrientationEvent::DeviceOrientationEvent(const AtomicString& eventType, De |
| { |
| } |
| -void DeviceOrientationEvent::initDeviceOrientationEvent(const AtomicString& type, bool bubbles, bool cancelable, DeviceOrientationData* orientation) |
| +void DeviceOrientationEvent::initDeviceOrientationEvent(const AtomicString& type, bool bubbles, bool cancelable, double* alpha, double* beta, double* gamma, bool* absolute) |
| { |
| if (dispatched()) |
| return; |
| initEvent(type, bubbles, cancelable); |
| - m_orientation = orientation; |
| + m_orientation = DeviceOrientationData::create(alpha, alpha ? *alpha : 0, beta, beta ? *beta : 0, gamma, gamma ? *gamma : 0, absolute, absolute ? *absolute : false); |
|
vivekg
2015/06/17 14:23:46
I will split this patch into two and will fix this
|
| } |
| double DeviceOrientationEvent::alpha(bool& isNull) const |