Commit fbcc7784 authored by rob.buis's avatar rob.buis Committed by Commit bot

Remove ScreenOrientation runtime flag (status=stable)

BUG=402536

Review-Url: https://codereview.chromium.org/2188523005
Cr-Commit-Position: refs/heads/master@{#408762}
parent 418dc6a2
...@@ -20,9 +20,7 @@ enum OrientationType { ...@@ -20,9 +20,7 @@ enum OrientationType {
"landscape-secondary" "landscape-secondary"
}; };
[ interface ScreenOrientation : EventTarget {
RuntimeEnabled=ScreenOrientation
] interface ScreenOrientation : EventTarget {
[MeasureAs=ScreenOrientationAngle] readonly attribute unsigned short angle; [MeasureAs=ScreenOrientationAngle] readonly attribute unsigned short angle;
[MeasureAs=ScreenOrientationType] readonly attribute DOMString type; [MeasureAs=ScreenOrientationType] readonly attribute DOMString type;
......
...@@ -25,8 +25,6 @@ ScreenOrientationController::~ScreenOrientationController() ...@@ -25,8 +25,6 @@ ScreenOrientationController::~ScreenOrientationController()
void ScreenOrientationController::provideTo(LocalFrame& frame, WebScreenOrientationClient* client) void ScreenOrientationController::provideTo(LocalFrame& frame, WebScreenOrientationClient* client)
{ {
ASSERT(RuntimeEnabledFeatures::screenOrientationEnabled());
ScreenOrientationController* controller = new ScreenOrientationController(frame, client); ScreenOrientationController* controller = new ScreenOrientationController(frame, client);
Supplement<LocalFrame>::provideTo(frame, supplementName(), controller); Supplement<LocalFrame>::provideTo(frame, supplementName(), controller);
} }
...@@ -120,8 +118,6 @@ void ScreenOrientationController::pageVisibilityChanged() ...@@ -120,8 +118,6 @@ void ScreenOrientationController::pageVisibilityChanged()
void ScreenOrientationController::notifyOrientationChanged() void ScreenOrientationController::notifyOrientationChanged()
{ {
ASSERT(RuntimeEnabledFeatures::screenOrientationEnabled());
if (!isActiveAndVisible()) if (!isActiveAndVisible())
return; return;
......
...@@ -2,8 +2,6 @@ ...@@ -2,8 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
[ partial interface Screen {
RuntimeEnabled=ScreenOrientation
] partial interface Screen {
[CallWith=ScriptState] readonly attribute ScreenOrientation orientation; [CallWith=ScriptState] readonly attribute ScreenOrientation orientation;
}; };
...@@ -178,7 +178,6 @@ ResponseBodyWithV8ExtraStream status=stable ...@@ -178,7 +178,6 @@ ResponseBodyWithV8ExtraStream status=stable
ResizeObserver status=experimental ResizeObserver status=experimental
RTCPeerConnectionNewGetStats status=test RTCPeerConnectionNewGetStats status=test
SandboxBlocksModals status=stable SandboxBlocksModals status=stable
ScreenOrientation status=stable
ScriptedSpeech status=stable ScriptedSpeech status=stable
// Scrolls to compensate for layout movements (bit.ly/scroll-anchoring). // Scrolls to compensate for layout movements (bit.ly/scroll-anchoring).
ScrollAnchoring settable_from_internals=True ScrollAnchoring settable_from_internals=True
......
...@@ -1480,8 +1480,7 @@ void WebLocalFrameImpl::setCoreFrame(LocalFrame* frame) ...@@ -1480,8 +1480,7 @@ void WebLocalFrameImpl::setCoreFrame(LocalFrame* frame)
if (enableWebBluetooth) if (enableWebBluetooth)
BluetoothSupplement::provideTo(*m_frame, m_client ? m_client->bluetooth() : nullptr); BluetoothSupplement::provideTo(*m_frame, m_client ? m_client->bluetooth() : nullptr);
if (RuntimeEnabledFeatures::screenOrientationEnabled()) ScreenOrientationController::provideTo(*m_frame, m_client ? m_client->webScreenOrientationClient() : nullptr);
ScreenOrientationController::provideTo(*m_frame, m_client ? m_client->webScreenOrientationClient() : nullptr);
if (RuntimeEnabledFeatures::presentationEnabled()) if (RuntimeEnabledFeatures::presentationEnabled())
PresentationController::provideTo(*m_frame, m_client ? m_client->presentationClient() : nullptr); PresentationController::provideTo(*m_frame, m_client ? m_client->presentationClient() : nullptr);
if (RuntimeEnabledFeatures::audioOutputDevicesEnabled()) if (RuntimeEnabledFeatures::audioOutputDevicesEnabled())
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment