[webkit-changes] [WebKit/WebKit] f02249: [Screen Orientation API] Change natural orientatio...

Chris Dumez noreply at github.com
Tue Feb 28 18:10:11 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: f0224968ed57e28fcf80825627817e4e435231eb
      https://github.com/WebKit/WebKit/commit/f0224968ed57e28fcf80825627817e4e435231eb
  Author: Chris Dumez <cdumez at apple.com>
  Date:   2023-02-28 (Tue, 28 Feb 2023)

  Changed paths:
    M Source/WebCore/page/ScreenOrientation.cpp
    M Source/WebCore/page/ScreenOrientationType.h
    M Source/WebCore/platform/ios/Device.h
    M Source/WebKit/UIProcess/WebScreenOrientationManagerProxy.cpp

  Log Message:
  -----------
  [Screen Orientation API] Change natural orientation on iPad and TV to be landscape-primary
https://bugs.webkit.org/show_bug.cgi?id=253082

Reviewed by Darin Adler.

Change natural orientation on iPad and TV to be landscape-primary instead of
portrait-primary.

* Source/WebCore/page/ScreenOrientation.cpp:
(WebCore::ScreenOrientation::lock):
* Source/WebCore/page/ScreenOrientationType.h:
(WebCore::isPortrait):
(WebCore::naturalScreenOrientationType):
(WebCore::isPortait): Deleted.
* Source/WebCore/platform/ios/Device.h:
* Source/WebKit/UIProcess/WebScreenOrientationManagerProxy.cpp:
(WebKit::resolveScreenOrientationLockType):

Canonical link: https://commits.webkit.org/260984@main




More information about the webkit-changes mailing list