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..d34d9ce2fd1f7818c6a739fb8ef03d3a817d0f10 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, const Nullable<double>& alpha, const Nullable<double>& beta, const Nullable<double>& gamma, const Nullable<bool>& absolute) |
{ |
if (dispatched()) |
return; |
initEvent(type, bubbles, cancelable); |
- m_orientation = orientation; |
+ m_orientation = DeviceOrientationData::create(alpha, beta, gamma, absolute); |
} |
double DeviceOrientationEvent::alpha(bool& isNull) const |