Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 11347fc8b9726376fa9de1dfa8cb34c77ecb1ea3
https://github.com/WebKit/WebKit/commit/11347fc8b9726376fa9de1dfa8cb34c77ecb1ea3
Author: Sammy Gill <[email protected]>
Date: 2025-10-02 (Thu, 02 Oct 2025)
Changed paths:
M Source/WebCore/layout/LayoutState.cpp
M Source/WebCore/layout/LayoutState.h
M
Source/WebCore/layout/integration/LayoutIntegrationFormattingContextLayout.cpp
M
Source/WebCore/layout/integration/LayoutIntegrationFormattingContextLayout.h
M Source/WebCore/layout/integration/LayoutIntegrationUtils.cpp
M Source/WebCore/layout/integration/LayoutIntegrationUtils.h
Log Message:
-----------
[LFC][Integration] Add ability to specify height constraint for layout
https://bugs.webkit.org/show_bug.cgi?id=299982
rdar://161762080
Reviewed by Alan Baradlay.
Currently, we have the ability to perform layout on a box with a width
constraint that gets set on the renderer via integration. This
constraint can then get used by the formatting context generated by the
box for sizing its contents. In many cases, grid layout is able to
provide a definite size for the width and height of its items, which
should in turn act as constraints for the grid items’ formatting context.
For example, a stretching grid item will fill the available space from
its grid area. Likewise, percentages will be able to resolve against
sizes in both dimensions.
In preparation for being able to perform layout on grid items as one of
the final steps of grid layout, we can expand this API to optionally
take in a height constraint. Callers can then pass in any definite
constraints, which should be determined from the formatting context
driving layout.
(WebCore::Layout::LayoutState::layoutWithFormattingContextForBox const):
(WebCore::LayoutIntegration::layoutWithFormattingContextForBox):
(WebCore::Layout::IntegrationUtils::layoutWithFormattingContextForBox const):
(WebCore::Layout::IntegrationUtils::layoutWithFormattingContextForBox):
All basically just plumbing for the new constraint.
Canonical link: https://commits.webkit.org/300908@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