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

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

Issue 2767473004: Update DeviceMotionEvent IDL to match the specification. (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
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/device_orientation/DeviceMotionEvent.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/modules/device_orientation/DeviceMotionData.cpp
diff --git a/third_party/WebKit/Source/modules/device_orientation/DeviceMotionData.cpp b/third_party/WebKit/Source/modules/device_orientation/DeviceMotionData.cpp
index d72b0ad68ef4f37187794f3a43a6de8f0a310953..8b42146007eed8637521b35d838bf197208670bb 100644
--- a/third_party/WebKit/Source/modules/device_orientation/DeviceMotionData.cpp
+++ b/third_party/WebKit/Source/modules/device_orientation/DeviceMotionData.cpp
@@ -122,7 +122,7 @@ DeviceMotionData* DeviceMotionData::create(const DeviceMotionEventInit& init) {
init.hasRotationRate()
? DeviceMotionData::RotationRate::create(init.rotationRate())
: nullptr,
- init.hasInterval() ? init.interval() : 0);
+ init.interval());
}
DeviceMotionData* DeviceMotionData::create(const device::MotionData& data) {
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/device_orientation/DeviceMotionEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698