-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FFC] Add support for [9.2.3.E] use max-content when flex-basis is co…
…ntent... https://bugs.webkit.org/show_bug.cgi?id=258761 Reviewed by Antti Koivisto. Partially implement https://www.w3.org/TR/css-flexbox-1/#algo-main-item 9.3.3.E when content should be sized using max-content. 1. IFC type of flex item only 2. Use non-integration codepath to compute max-content for now * Source/WebCore/layout/formattingContexts/flex/FlexFormattingContext.cpp: (WebCore::Layout::FlexFormattingContext::layout): * Source/WebCore/layout/formattingContexts/flex/FlexLayout.cpp: (WebCore::Layout::FlexLayout::FlexLayout): (WebCore::Layout::FlexLayout::maxContentForFlexItem const): (WebCore::Layout::FlexLayout::flexBaseAndHypotheticalMainSizeForFlexItems const): (WebCore::Layout::FlexLayout::stretchFlexLines const): (WebCore::Layout::FlexLayout::handleMainAxisAlignment const): (WebCore::Layout::FlexLayout::handleCrossAxisAlignmentForFlexItems const): (WebCore::Layout::FlexLayout::handleCrossAxisAlignmentForFlexLines const): (WebCore::Layout::FlexLayout::flexContainer const): (WebCore::Layout::FlexLayout::flexFormattingContext const): * Source/WebCore/layout/formattingContexts/flex/FlexLayout.h: (WebCore::Layout::FlexLayout::isSingleLineFlexContainer const): (WebCore::Layout::FlexLayout::flexContainerStyle const): (WebCore::Layout::FlexLayout::flexContainer const): Deleted. (WebCore::Layout::FlexLayout::rootStyle const): Deleted. * Source/WebCore/layout/formattingContexts/inline/InlineFormattingContext.cpp: (WebCore::Layout::InlineFormattingContext::maximumContentSize): * Source/WebCore/layout/formattingContexts/inline/InlineFormattingContext.h: Canonical link: https://commits.webkit.org/265690@main
- Loading branch information
1 parent
689be3c
commit 01a8c97
Showing
5 changed files
with
71 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters