[webkit-changes] [WebKit/WebKit] bc9c3b: [FFC] Add support for used max-content size in mai...
Alan Baradlay
noreply at github.com
Tue Oct 15 11:56:30 PDT 2024
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: bc9c3b27c7e91e2ff55a59509f7c61abc1e4e4f6
https://github.com/WebKit/WebKit/commit/bc9c3b27c7e91e2ff55a59509f7c61abc1e4e4f6
Author: Alan Baradlay <zalan at apple.com>
Date: 2024-10-15 (Tue, 15 Oct 2024)
Changed paths:
M Source/WebCore/layout/formattingContexts/flex/FlexFormattingUtils.cpp
M Source/WebCore/layout/formattingContexts/flex/FlexFormattingUtils.h
M Source/WebCore/layout/formattingContexts/flex/FlexLayout.cpp
Log Message:
-----------
[FFC] Add support for used max-content size in main axis when main axis is not parallel to inline axis
https://bugs.webkit.org/show_bug.cgi?id=281496
Reviewed by Antti Koivisto.
FlexFormattingUtils::usedMaxContentSizeInMainAxis handles now both when the main
axis is parallel to the inline axis (row direction with regular flex items) and
when these axes are perpendicular (e.g. column direction with regular flex items).
* Source/WebCore/layout/formattingContexts/flex/FlexFormattingUtils.cpp:
(WebCore::Layout::FlexFormattingUtils::usedMinimumSizeInMainAxis const):
(WebCore::Layout::FlexFormattingUtils::usedMaximumSizeInMainAxis const):
(WebCore::Layout::FlexFormattingUtils::usedMaxContentSizeInMainAxis const):
(WebCore::Layout::FlexFormattingUtils::usedMinimumMainSize const): Deleted.
(WebCore::Layout::FlexFormattingUtils::usedMaxiumMainSize const): Deleted.
* Source/WebCore/layout/formattingContexts/flex/FlexFormattingUtils.h:
* Source/WebCore/layout/formattingContexts/flex/FlexLayout.cpp:
(WebCore::Layout::FlexLayout::flexBaseAndHypotheticalMainSizeForFlexItems const):
(WebCore::Layout::FlexLayout::computeMainSizeForFlexItems const):
Canonical link: https://commits.webkit.org/285215@main
To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications
More information about the webkit-changes
mailing list