| Index: Source/modules/device_orientation/DeviceOrientationController.cpp
|
| diff --git a/Source/modules/device_orientation/DeviceOrientationController.cpp b/Source/modules/device_orientation/DeviceOrientationController.cpp
|
| index ffbb996cbc40f799649feb99ad3af4b6d8c68582..779b3284abaf28bfd269ab369ff94aecaa97e0b4 100644
|
| --- a/Source/modules/device_orientation/DeviceOrientationController.cpp
|
| +++ b/Source/modules/device_orientation/DeviceOrientationController.cpp
|
| @@ -37,8 +37,9 @@
|
| namespace WebCore {
|
|
|
| DeviceOrientationController::DeviceOrientationController(Document& document)
|
| - : DeviceSensorEventController(document)
|
| + : DeviceSensorEventController(document.page())
|
| , DOMWindowLifecycleObserver(document.domWindow())
|
| + , m_document(document)
|
| {
|
| }
|
|
|
| @@ -100,6 +101,11 @@ bool DeviceOrientationController::isNullEvent(Event* event)
|
| return !orientationEvent->orientation()->canProvideEventData();
|
| }
|
|
|
| +Document* DeviceOrientationController::document()
|
| +{
|
| + return &m_document;
|
| +}
|
| +
|
| void DeviceOrientationController::didAddEventListener(DOMWindow* window, const AtomicString& eventType)
|
| {
|
| if (eventType != EventTypeNames::deviceorientation)
|
|
|