| Index: Source/web/FrameLoaderClientImpl.cpp
|
| diff --git a/Source/web/FrameLoaderClientImpl.cpp b/Source/web/FrameLoaderClientImpl.cpp
|
| index 8cdf3ebcc1b5da2e7c7f3d9fbec2203351d7f057..3b85800a8432216e050409887061ea520e846f08 100644
|
| --- a/Source/web/FrameLoaderClientImpl.cpp
|
| +++ b/Source/web/FrameLoaderClientImpl.cpp
|
| @@ -72,6 +72,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"
|
| @@ -117,6 +118,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())
|
|
|