Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: b0788b3af9c739ecd37d5925330d9e3bc59c2f42
https://github.com/WebKit/WebKit/commit/b0788b3af9c739ecd37d5925330d9e3bc59c2f42
Author: Antti Koivisto <[email protected]>
Date: 2025-03-14 (Fri, 14 Mar 2025)
Changed paths:
A
LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/position-try-order-inset-modified-containing-block-expected.txt
A
LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/position-try-order-inset-modified-containing-block.html
M Source/WebCore/rendering/PositionedLayoutConstraints.cpp
M Source/WebCore/rendering/PositionedLayoutConstraints.h
M Source/WebCore/rendering/RenderBox.cpp
M Source/WebCore/style/StyleTreeResolver.cpp
Log Message:
-----------
[css-anchor-position-1] Use inset-modified containing block size for sorting
position options
https://bugs.webkit.org/show_bug.cgi?id=289785
rdar://problem/147033919
Reviewed by Sam Weinig.
We currently use PositionedLayoutConstraints::availableContentSpace() which
also substracts margin, border and padding.
*
LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/position-try-order-inset-modified-containing-block-expected.txt:
Added.
*
LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/position-try-order-inset-modified-containing-block.html:
Added.
Add a test.
* Source/WebCore/rendering/PositionedLayoutConstraints.h:
(WebCore::PositionedLayoutConstraints::insetModifiedContainingBlockSize const):
Add a helper.
* Source/WebCore/rendering/RenderBox.cpp:
(WebCore::RenderBox::computePositionedLogicalWidth const):
(WebCore::RenderBox::computePositionedLogicalHeight const):
(WebCore::RenderBox::computePositionedLogicalWidthReplaced const):
(WebCore::RenderBox::computePositionedLogicalHeightReplaced const):
Also get rid of some obsolete comments.
* Source/WebCore/style/StyleTreeResolver.cpp:
(WebCore::Style::TreeResolver::sortPositionOptionsIfNeeded):
Use insetModifiedContainingBlockSize instead of availableContentSpace.
Canonical link: https://commits.webkit.org/292162@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