diff options
author | timvolodine@chromium.org <timvolodine@chromium.org@bbb929c8-8fbe-4397-9dbb-9b2b20218538> | 2013-08-06 13:26:54 +0000 |
---|---|---|
committer | timvolodine@chromium.org <timvolodine@chromium.org@bbb929c8-8fbe-4397-9dbb-9b2b20218538> | 2013-08-06 13:26:54 +0000 |
commit | e1b283f535e9daa615b4492285357ebabd13ec54 (patch) | |
tree | dbc90318bb2ef78aea785441629ecdc379334e50 | |
parent | 307b389fd15e4a577b62f689a7bcda9030189ad4 (diff) | |
download | chromium_src-e1b283f535e9daa615b4492285357ebabd13ec54.zip chromium_src-e1b283f535e9daa615b4492285357ebabd13ec54.tar.gz chromium_src-e1b283f535e9daa615b4492285357ebabd13ec54.tar.bz2 |
Fix buggy ASSERT in NewDeviceOrientationController.
The assert should test for deviceorientation event instead of devicemotion event.
BUG=
Review URL: https://chromiumcodereview.appspot.com/22144005
git-svn-id: svn://svn.chromium.org/blink/trunk@155610 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-rw-r--r-- | third_party/WebKit/Source/modules/device_orientation/NewDeviceOrientationController.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/third_party/WebKit/Source/modules/device_orientation/NewDeviceOrientationController.cpp b/third_party/WebKit/Source/modules/device_orientation/NewDeviceOrientationController.cpp index b1cf62c..717a990 100644 --- a/third_party/WebKit/Source/modules/device_orientation/NewDeviceOrientationController.cpp +++ b/third_party/WebKit/Source/modules/device_orientation/NewDeviceOrientationController.cpp @@ -86,7 +86,7 @@ void NewDeviceOrientationController::unregisterWithDispatcher() bool NewDeviceOrientationController::isNullEvent(Event* event) { - ASSERT(event->type() == eventNames().devicemotionEvent); + ASSERT(event->type() == eventNames().deviceorientationEvent); DeviceOrientationEvent* orientationEvent = static_cast<DeviceOrientationEvent*>(event); return !orientationEvent->orientation()->canProvideEventData(); } |