[webkit-changes] [WebKit/WebKit] a3d25b: `screen.width` and `screen.height` in headless mod...
Wenson Hsieh
noreply at github.com
Mon Mar 13 10:31:26 PDT 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: a3d25bb21b9b3283e50679df4c4af4ce3e4286d9
https://github.com/WebKit/WebKit/commit/a3d25bb21b9b3283e50679df4c4af4ce3e4286d9
Author: Wenson Hsieh <wenson_hsieh at apple.com>
Date: 2023-03-13 (Mon, 13 Mar 2023)
Changed paths:
M Source/WebCore/page/Frame.cpp
Log Message:
-----------
`screen.width` and `screen.height` in headless mode should not change when page scale factor is changed
https://bugs.webkit.org/show_bug.cgi?id=253762
rdar://106482703
Reviewed by Tim Horton.
Account for page scale factor when computing the screen size in headless mode, such that the
adjusted dimensions remain stable as the page is zoomed on both macOS and iOS.
* Source/WebCore/page/Frame.cpp:
(WebCore::Frame::screenSize const):
Canonical link: https://commits.webkit.org/261574@main
More information about the webkit-changes
mailing list