Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: bdfffc7361a623dc84c8c872d96f57bcbd458481
https://github.com/WebKit/WebKit/commit/bdfffc7361a623dc84c8c872d96f57bcbd458481
Author: Matthieu Dubet <[email protected]>
Date: 2025-11-21 (Fri, 21 Nov 2025)
Changed paths:
A LayoutTests/fast/css/devicepixelratio-sync-iframe-page-zoom-expected.txt
A LayoutTests/fast/css/devicepixelratio-sync-iframe-page-zoom.html
M LayoutTests/fast/transforms/bounding-rect-zoom.html
M
LayoutTests/imported/w3c/web-platform-tests/css/css-viewport/zoom/zoom-iframe-dynamic.html
M
LayoutTests/platform/mac/svg/zoom/page/zoom-img-preserveAspectRatio-support-1-expected.txt
M
LayoutTests/platform/mac/svg/zoom/page/zoom-replaced-intrinsic-ratio-001-expected.txt
M
LayoutTests/platform/mac/svg/zoom/page/zoom-svg-through-object-with-absolute-size-2-expected.txt
M
LayoutTests/platform/mac/svg/zoom/page/zoom-svg-through-object-with-absolute-size-expected.txt
M
LayoutTests/platform/mac/svg/zoom/page/zoom-svg-through-object-with-auto-size-expected.txt
M
LayoutTests/platform/mac/svg/zoom/page/zoom-svg-through-object-with-huge-size-expected.txt
M
LayoutTests/platform/mac/svg/zoom/page/zoom-svg-through-object-with-override-size-expected.txt
M
LayoutTests/platform/mac/svg/zoom/page/zoom-svg-through-object-with-percentage-size-expected.txt
M LayoutTests/svg/zoom/page/zoom-svg-as-object-expected.txt
M Source/WebCore/page/LocalDOMWindow.cpp
M Source/WebCore/page/LocalFrame.cpp
Log Message:
-----------
[CSS] Page zoom affects all frames devicePixelRatio equally.
https://bugs.webkit.org/show_bug.cgi?id=301807
rdar://163857955
Reviewed by Simon Fraser.
This patch aligns behavior between all frames by making page zoom also affect
the main frame
(it was already observable for iframe through usedZoom)
Test: fast/css/devicepixelratio-sync-iframe-page-zoom.html
* LayoutTests/fast/css/devicepixelratio-sync-iframe-page-zoom-expected.txt:
Added.
* LayoutTests/fast/css/devicepixelratio-sync-iframe-page-zoom.html: Added.
New test to verify that main frame and iframe has the same DPR with page zoom.
* LayoutTests/fast/transforms/bounding-rect-zoom.html:
*
LayoutTests/imported/w3c/web-platform-tests/css/css-viewport/zoom/zoom-iframe-dynamic.html:
*
LayoutTests/platform/mac/svg/zoom/page/zoom-img-preserveAspectRatio-support-1-expected.txt:
*
LayoutTests/platform/mac/svg/zoom/page/zoom-replaced-intrinsic-ratio-001-expected.txt:
*
LayoutTests/platform/mac/svg/zoom/page/zoom-svg-through-object-with-absolute-size-2-expected.txt:
*
LayoutTests/platform/mac/svg/zoom/page/zoom-svg-through-object-with-absolute-size-expected.txt:
*
LayoutTests/platform/mac/svg/zoom/page/zoom-svg-through-object-with-auto-size-expected.txt:
*
LayoutTests/platform/mac/svg/zoom/page/zoom-svg-through-object-with-huge-size-expected.txt:
*
LayoutTests/platform/mac/svg/zoom/page/zoom-svg-through-object-with-override-size-expected.txt:
*
LayoutTests/platform/mac/svg/zoom/page/zoom-svg-through-object-with-percentage-size-expected.txt:
* LayoutTests/svg/zoom/page/zoom-svg-as-object-expected.txt:
Rebaseline tests (they are correct)
* Source/WebCore/page/LocalFrame.cpp:
(WebCore::LocalFrame::frameScaleFactor const):
Canonical link: https://commits.webkit.org/303397@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications