Index: Source/web/WebViewImpl.cpp |
diff --git a/Source/web/WebViewImpl.cpp b/Source/web/WebViewImpl.cpp |
index 94ab8cc45b04f89c0276867bc1c142168416aa00..b40c580a1aa862379927d389513d6421f3339ea6 100644 |
--- a/Source/web/WebViewImpl.cpp |
+++ b/Source/web/WebViewImpl.cpp |
@@ -85,6 +85,7 @@ |
#include "modules/geolocation/GeolocationController.h" |
#include "modules/indexeddb/InspectorIndexedDBAgent.h" |
#include "modules/push_messaging/PushController.h" |
+#include "modules/screen_orientation/ScreenOrientationController.h" |
#include "platform/ContextMenu.h" |
#include "platform/ContextMenuItem.h" |
#include "platform/Cursor.h" |
@@ -434,6 +435,8 @@ WebViewImpl::WebViewImpl(WebViewClient* client) |
providePushControllerTo(*m_page, m_client->webPushClient()); |
setDeviceScaleFactor(m_client->screenInfo().deviceScaleFactor); |
setVisibilityState(m_client->visibilityState(), true); |
+ if (RuntimeEnabledFeatures::screenOrientationEnabled()) |
+ ScreenOrientationController::provideTo(*m_page, m_client->webScreenOrientationClient()); |
} |
m_inspectorSettingsMap = adoptPtr(new SettingsMap); |