Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 395863283548f583a16c33f6e1ea45c0b85dcc03
      
https://github.com/WebKit/WebKit/commit/395863283548f583a16c33f6e1ea45c0b85dcc03
  Author: Wenson Hsieh <[email protected]>
  Date:   2024-08-13 (Tue, 13 Aug 2024)

  Changed paths:
    M Source/WebCore/page/Quirks.cpp
    M Source/WebCore/page/Quirks.h
    M Source/WebCore/page/Screen.cpp

  Log Message:
  -----------
  Add a site-specific quirk to flip the values of `screen.width` and 
`screen.height`
https://bugs.webkit.org/show_bug.cgi?id=278023
rdar://133423460

Reviewed by Aditya Keerthi.

Add `Quirks::shouldFlipScreenDimensions()` which, when set, reverses the 
returned values from the
`screen.width` and `screen.height` DOM APIs.

* Source/WebCore/page/Quirks.cpp:
(WebCore::Quirks::shouldFlipScreenDimensions const):
* Source/WebCore/page/Quirks.h:
* Source/WebCore/page/Screen.cpp:
(WebCore::shouldFlipScreenDimensions):
(WebCore::Screen::height const):
(WebCore::Screen::width const):

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to