| Index: Source/web/FrameLoaderClientImpl.cpp
|
| diff --git a/Source/web/FrameLoaderClientImpl.cpp b/Source/web/FrameLoaderClientImpl.cpp
|
| index 381eaddb3109848c30be3f04cd371f9caded4205..26adc9938bd1a7a51ee0513b983623c97408a21c 100644
|
| --- a/Source/web/FrameLoaderClientImpl.cpp
|
| +++ b/Source/web/FrameLoaderClientImpl.cpp
|
| @@ -74,6 +74,7 @@
|
| #include "core/frame/Settings.h"
|
| #include "core/page/WindowFeatures.h"
|
| #include "core/rendering/HitTestResult.h"
|
| +#include "modules/device_light/DeviceLightController.h"
|
| #include "modules/device_orientation/DeviceMotionController.h"
|
| #include "modules/device_orientation/DeviceOrientationController.h"
|
| #include "modules/screen_orientation/ScreenOrientationController.h"
|
| @@ -119,6 +120,8 @@ void FrameLoaderClientImpl::dispatchDidClearWindowObjectInWorld(DOMWrapperWorld*
|
| Document* document = m_webFrame->frame()->document();
|
| if (document) {
|
| WheelController::from(*document);
|
| + if (RuntimeEnabledFeatures::deviceLightEnabled())
|
| + DeviceLightController::from(*document);
|
| if (RuntimeEnabledFeatures::deviceMotionEnabled())
|
| DeviceMotionController::from(*document);
|
| if (RuntimeEnabledFeatures::deviceOrientationEnabled())
|
|
|