[webkit-changes] [WebKit/WebKit] 46e8aa: Refactor spots checking if the grid is Masonry
Brandon Stewart
noreply at github.com
Fri Dec 23 17:59:44 PST 2022
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 46e8aa67857469452ae492cac0b7fc254218e6e6
https://github.com/WebKit/WebKit/commit/46e8aa67857469452ae492cac0b7fc254218e6e6
Author: Brandon Stewart <brandonstewart at apple.com>
Date: 2022-12-23 (Fri, 23 Dec 2022)
Changed paths:
M Source/WebCore/rendering/GridTrackSizingAlgorithm.cpp
M Source/WebCore/rendering/RenderGrid.cpp
M Source/WebCore/rendering/RenderGrid.h
Log Message:
-----------
Refactor spots checking if the grid is Masonry
https://bugs.webkit.org/show_bug.cgi?id=249843
Reviewed by Matt Woodrow.
Refactor out checking if a function isMasonry or not based on Matt's feedback in the
last patch.
* Source/WebCore/rendering/GridTrackSizingAlgorithm.cpp:
(WebCore::GridTrackSizingAlgorithm::accumulateIntrinsicSizesForTrack):
(WebCore::GridTrackSizingAlgorithm::run):
(WebCore::GridTrackSizingAlgorithm::isDirectionInMasonryDirection const):
* Source/WebCore/rendering/RenderGrid.cpp:
(WebCore::RenderGrid::isMasonry const):
* Source/WebCore/rendering/RenderGrid.h:
Canonical link: https://commits.webkit.org/258315@main
More information about the webkit-changes
mailing list