Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 24964b8e4316b1c52177852ec082d1f109c1ca68
https://github.com/WebKit/WebKit/commit/24964b8e4316b1c52177852ec082d1f109c1ca68
Author: Matthieu Dubet <m_du...@apple.com>
Date: 2025-10-24 (Fri, 24 Oct 2025)
Changed paths:
M LayoutTests/TestExpectations
M LayoutTests/fast/transforms/bounding-rect-zoom-expected.txt
M LayoutTests/fast/transforms/bounding-rect-zoom.html
M
LayoutTests/imported/w3c/web-platform-tests/css/css-viewport/zoom/iframe-zoom-nested.html
M
LayoutTests/imported/w3c/web-platform-tests/css/css-viewport/zoom/iframe-zoom.sub.html
M
LayoutTests/imported/w3c/web-platform-tests/css/css-viewport/zoom/zoom-iframe-dynamic-expected.txt
M
LayoutTests/imported/w3c/web-platform-tests/css/css-viewport/zoom/zoom-iframe-dynamic.html
M LayoutTests/platform/glib/TestExpectations
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
M Source/WebCore/page/LocalFrameView.cpp
M Source/WebCore/page/LocalFrameView.h
M Source/WebCore/rendering/RenderWidget.cpp
Log Message:
-----------
[CSS] <iframe> should be scaled by the used zoom
https://bugs.webkit.org/show_bug.cgi?id=301148
Reviewed by Sammy Gill.
We take into account the usedZoom() of the owning <iframe> for content inside it
via frameScaleFactor().
* LayoutTests/TestExpectations:
The site-isolation/page-zoom test need further investigation
* LayoutTests/fast/transforms/bounding-rect-zoom-expected.txt:
* LayoutTests/fast/transforms/bounding-rect-zoom.html:
Add some more cases with <iframe> and pixelDeviceRatio
*
LayoutTests/imported/w3c/web-platform-tests/css/css-viewport/zoom/iframe-zoom.sub.html:
*
LayoutTests/imported/w3c/web-platform-tests/css/css-viewport/zoom/zoom-iframe-dynamic-expected.txt:
*
LayoutTests/imported/w3c/web-platform-tests/css/css-viewport/zoom/zoom-iframe-dynamic.html:
Fix flakyness when the event listener is set too late
* LayoutTests/platform/glib/TestExpectations:
*
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:
All those tests now correctly render the circle taking into account the zoom
* Source/WebCore/page/LocalDOMWindow.cpp:
(WebCore::LocalDOMWindow::devicePixelRatio const):
* Source/WebCore/page/LocalFrame.cpp:
(WebCore::LocalFrame::frameScaleFactor const):
* Source/WebCore/page/LocalFrameView.cpp:
(WebCore::LocalFrameView::reset):
(WebCore::LocalFrameView::willDoLayout):
(WebCore::LocalFrameView::scheduleResizeEventIfNeeded):
* Source/WebCore/page/LocalFrameView.h:
* Source/WebCore/rendering/RenderWidget.cpp:
(WebCore::RenderWidget::styleDidChange):
Canonical link: https://commits.webkit.org/302097@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications