Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge r228661 - [css-grid] Apply automatic minimum size clamping to s…
…panning items too https://bugs.webkit.org/show_bug.cgi?id=182684 Reviewed by Javier Fernandez. LayoutTests/imported/w3c: Update WPT tests related to this change. * web-platform-tests/css/css-grid/grid-items/grid-minimum-size-grid-items-022-expected.txt: * web-platform-tests/css/css-grid/grid-items/grid-minimum-size-grid-items-022.html: * web-platform-tests/css/css-grid/grid-items/grid-minimum-size-grid-items-023-expected.txt: * web-platform-tests/css/css-grid/grid-items/grid-minimum-size-grid-items-023.html: * web-platform-tests/css/css-grid/grid-items/grid-minimum-size-grid-items-024-expected.txt: Added. * web-platform-tests/css/css-grid/grid-items/grid-minimum-size-grid-items-024.html: Added. * web-platform-tests/css/css-grid/grid-items/grid-minimum-size-grid-items-025-expected.txt: Added. * web-platform-tests/css/css-grid/grid-items/grid-minimum-size-grid-items-025.html: Added. * web-platform-tests/css/css-grid/grid-items/w3c-import.log: Source/WebCore: In r225776 we added the conditions from the spec to apply the automatic minimum size clamping when required but only to non-spanning items. See: https://drafts.csswg.org/css-grid/#min-size-auto This patch moves the code from GridTrackSizingAlgorithm::sizeTrackToFitNonSpanningItem() to GridTrackSizingAlgorithmStrategy::minSizeForChild() that way the clamping is applied for both spanning and non-spanning items. This somehow reverts r225776, as it was adding some duplicated code. All the checks to know if we should use that part of the spec were already present in GridTrackSizingAlgorithmStrategy::minSizeForChild(). Apart from using the previous code, there's a new loop to verify that the max track sizing function is fixed for all the tracks of the item. Tests: imported/w3c/web-platform-tests/css/css-grid/grid-items/grid-minimum-size-grid-items-024.html imported/w3c/web-platform-tests/css/css-grid/grid-items/grid-minimum-size-grid-items-025.html * rendering/GridTrackSizingAlgorithm.cpp: (WebCore::GridTrackSizingAlgorithm::sizeTrackToFitNonSpanningItem): (WebCore::GridTrackSizingAlgorithmStrategy::minSizeForChild const):
- Loading branch information
1 parent
7b82a59
commit 4274afd
Showing
12 changed files
with
1,752 additions
and
21 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
Oops, something went wrong.