| Index: third_party/WebKit/Source/modules/device_orientation/DeviceMotionEvent.cpp
|
| diff --git a/third_party/WebKit/Source/modules/device_orientation/DeviceMotionEvent.cpp b/third_party/WebKit/Source/modules/device_orientation/DeviceMotionEvent.cpp
|
| index 0a5c88efd5d007c64c249851883b00621d5479f1..1975a4963a52b3e27bd5563f661f5d9e91a12a8c 100644
|
| --- a/third_party/WebKit/Source/modules/device_orientation/DeviceMotionEvent.cpp
|
| +++ b/third_party/WebKit/Source/modules/device_orientation/DeviceMotionEvent.cpp
|
| @@ -47,22 +47,6 @@ DeviceMotionEvent::DeviceMotionEvent(const AtomicString& eventType,
|
| : Event(eventType, false, false), // Can't bubble, not cancelable
|
| m_deviceMotionData(deviceMotionData) {}
|
|
|
| -void DeviceMotionEvent::initDeviceMotionEvent(
|
| - const AtomicString& type,
|
| - bool bubbles,
|
| - bool cancelable,
|
| - DeviceMotionData* deviceMotionData) {
|
| - if (isBeingDispatched())
|
| - return;
|
| -
|
| - initEvent(type, bubbles, cancelable);
|
| - m_deviceMotionData = deviceMotionData;
|
| -
|
| - m_acceleration.clear();
|
| - m_accelerationIncludingGravity.clear();
|
| - m_rotationRate.clear();
|
| -}
|
| -
|
| DeviceAcceleration* DeviceMotionEvent::acceleration() {
|
| if (!m_deviceMotionData->getAcceleration())
|
| return nullptr;
|
|
|