Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 4e36d89dbce0a0b20d598724f9fcdee5350fec32
      
https://github.com/WebKit/WebKit/commit/4e36d89dbce0a0b20d598724f9fcdee5350fec32
  Author: Matthieu Dubet <[email protected]>
  Date:   2025-10-20 (Mon, 20 Oct 2025)

  Changed paths:
    M LayoutTests/css3/zoom-coords.xhtml
    M LayoutTests/fast/block/float/floats-with-margin-should-not-wrap.html
    M LayoutTests/fast/css/resize-below-min-intrinsic-size.html
    M LayoutTests/fast/css/resize-below-min-size-zoomed.html
    M 
LayoutTests/fast/dom/Document/CaretRangeFromPoint/caretRangeFromPoint-in-zoom-and-scroll.html
    M LayoutTests/fast/forms/search-zoomed.html
    M LayoutTests/fast/forms/switch/zoom-computed-style.html
    M LayoutTests/fast/sub-pixel/layout-boxes-with-zoom-expected.html
    M LayoutTests/fast/sub-pixel/layout-boxes-with-zoom.html
    M LayoutTests/fast/sub-pixel/table-rows-have-stable-height.html
    M LayoutTests/fast/transforms/bounding-rect-zoom-expected.txt
    M LayoutTests/fast/transforms/bounding-rect-zoom.html
    M LayoutTests/fast/zooming/client-rects-with-css-and-page-zoom-expected.txt
    M LayoutTests/fast/zooming/client-rects-with-css-and-page-zoom.html
    M 
LayoutTests/imported/w3c/web-platform-tests/css/css-viewport/zoom/relative-units-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/css/css-viewport/zoom/widget-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/css/cssom-view/getBoundingClientRect-zoom-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/css/cssom-view/getClientRects-zoom-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/css/cssom-view/image-x-y-zoom-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/css/cssom-view/scrollIntoView-sideways-lr-writing-mode-and-rtl-direction-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/css/cssom-view/scrollIntoView-sideways-lr-writing-mode-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/intersection-observer/bounding-box-expected.txt
    R 
LayoutTests/platform/ios/imported/w3c/web-platform-tests/css/css-viewport/zoom/widget-expected.txt
    M LayoutTests/platform/mac/css3/zoom-coords-expected.txt
    M LayoutTests/svg/zoom/page/zoom-zoom-coords-expected.txt
    M LayoutTests/svg/zoom/page/zoom-zoom-coords.xhtml
    M Source/WTF/Scripts/Preferences/UnifiedWebPreferences.yaml
    M Source/WebCore/dom/Document.cpp
    M Source/WebCore/dom/Document.h

  Log Message:
  -----------
  [CSS] get(Bounding)ClientRect API returns rects scaled lengths
https://bugs.webkit.org/show_bug.cgi?id=300474
rdar://162325730

Reviewed by Sammy Gill.

The behavior of this API has changed, it now returns scaled length instead of 
unscaled ones.
Most of this patch is updating tests to account for this new behavior (by 
dividing by the CSS zoom).

https://drafts.csswg.org/css-viewport/#scaled
https://drafts.csswg.org/css-viewport/#zoom-om

* LayoutTests/TestExpectations:
* LayoutTests/css3/zoom-coords.xhtml:
* LayoutTests/fast/block/float/floats-with-margin-should-not-wrap.html:
* LayoutTests/fast/css/resize-below-min-intrinsic-size.html:
* LayoutTests/fast/css/resize-below-min-size-zoomed.html:
* 
LayoutTests/fast/dom/Document/CaretRangeFromPoint/caretRangeFromPoint-in-zoom-and-scroll.html:
* LayoutTests/fast/forms/search-zoomed.html:
* LayoutTests/fast/forms/switch/zoom-computed-style.html:
* LayoutTests/fast/sub-pixel/layout-boxes-with-zoom-expected.html:
* LayoutTests/fast/sub-pixel/layout-boxes-with-zoom.html:
* LayoutTests/fast/sub-pixel/table-rows-have-stable-height.html:
* LayoutTests/fast/transforms/bounding-rect-zoom-expected.txt: Added.
* LayoutTests/fast/transforms/bounding-rect-zoom.html:
* LayoutTests/fast/zooming/client-rects-with-css-and-page-zoom-expected.txt:
* LayoutTests/fast/zooming/client-rects-with-css-and-page-zoom.html:
* 
LayoutTests/imported/w3c/web-platform-tests/css/css-viewport/zoom/relative-units-expected.txt:
* 
LayoutTests/imported/w3c/web-platform-tests/css/css-viewport/zoom/widget-expected.txt:
* 
LayoutTests/imported/w3c/web-platform-tests/css/cssom-view/getBoundingClientRect-zoom-expected.txt:
* 
LayoutTests/imported/w3c/web-platform-tests/css/cssom-view/getClientRects-zoom-expected.txt:
* 
LayoutTests/imported/w3c/web-platform-tests/css/cssom-view/image-x-y-zoom-expected.txt:
* 
LayoutTests/imported/w3c/web-platform-tests/css/cssom-view/scrollIntoView-inline-image-expected.txt:
* 
LayoutTests/imported/w3c/web-platform-tests/css/cssom-view/scrollIntoView-sideways-lr-writing-mode-and-rtl-direction-expected.txt:
* 
LayoutTests/imported/w3c/web-platform-tests/css/cssom-view/scrollIntoView-sideways-lr-writing-mode-expected.txt:
* 
LayoutTests/imported/w3c/web-platform-tests/intersection-observer/bounding-box-expected.txt:
* LayoutTests/platform/glib/fast/transforms/bounding-rect-zoom-expected.txt: 
Removed.
* LayoutTests/platform/gtk/fast/transforms/bounding-rect-zoom-expected.png: 
Removed.
* LayoutTests/platform/ios/fast/transforms/bounding-rect-zoom-expected.png: 
Removed.
* LayoutTests/platform/ios/fast/transforms/bounding-rect-zoom-expected.txt: 
Removed.
* LayoutTests/platform/mac/css3/zoom-coords-expected.txt:
* LayoutTests/platform/mac/fast/transforms/bounding-rect-zoom-expected.png: 
Removed.
* LayoutTests/platform/mac/fast/transforms/bounding-rect-zoom-expected.txt: 
Removed.
* LayoutTests/platform/win/fast/transforms/bounding-rect-zoom-expected.txt: 
Removed.
* LayoutTests/svg/zoom/page/zoom-zoom-coords-expected.txt:
* LayoutTests/svg/zoom/page/zoom-zoom-coords.xhtml:
* Source/WTF/Scripts/Preferences/UnifiedWebPreferences.yaml:
* Source/WebCore/dom/Document.cpp:
(WebCore::Document::zoomForClient const):
(WebCore::Document::convertAbsoluteToClientQuads):
(WebCore::Document::convertAbsoluteToClientRects):
(WebCore::Document::convertAbsoluteToClientRect):
* Source/WebCore/dom/Document.h:

Canonical link: https://commits.webkit.org/301806@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