-
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.
Fork out Masonry into a separate layout function
https://bugs.webkit.org/show_bug.cgi?id=251459 Reviewed by Matt Woodrow. I have been finding a significant amount of special cases are getting added to the grid code to handle masonry. This has been getting rather messy to maintain, and splitting these two would allow easier changes to the layout to support masonry without worrying about breaking grid. * Source/WebCore/rendering/GridMasonryLayout.cpp: (WebCore::GridMasonryLayout::collectMasonryItems): * Source/WebCore/rendering/GridTrackSizingAlgorithm.cpp: (WebCore::GridTrack::cachedTrackSize const): * Source/WebCore/rendering/GridTrackSizingAlgorithm.h: (WebCore::GridTrack::cachedTrackSize const): Deleted. * Source/WebCore/rendering/RenderGrid.cpp: (WebCore::RenderGrid::layoutBlock): (WebCore::RenderGrid::layoutGrid): (WebCore::RenderGrid::layoutMasonry): * Source/WebCore/rendering/RenderGrid.h: Canonical link: https://commits.webkit.org/259662@main
- Loading branch information
Showing
5 changed files
with
150 additions
and
11 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