Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(991)

Unified Diff: third_party/WebKit/Source/modules/device_orientation/DeviceMotionEvent.cpp

Issue 2728963004: Remove non-standard DeviceOrientation Event initializers. (Closed)
Patch Set: Rebased. Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;

Powered by Google App Engine
This is Rietveld 408576698