LibWeb: Set 0px fixed size to collapsed auto-fit tracks in GFC

Fixes the issue that before we set base_size and growth_limit of
collapsed tracks to 0px which still allowed them to grow by space
distribution.
This commit is contained in:
Aliaksandr Kalenik 2023-06-20 18:48:20 +03:00 committed by Andreas Kling
commit 21f39061fd
Notes: sideshowbarker 2024-07-17 02:55:44 +09:00
4 changed files with 49 additions and 24 deletions

View file

@ -240,6 +240,8 @@ private:
void initialize_grid_tracks_for_columns_and_rows(AvailableSpace const&);
void initialize_gap_tracks(AvailableSpace const&);
void collapse_auto_fit_tracks_if_needed(GridDimension const);
template<typename Match>
void distribute_extra_space_across_spanned_tracks_base_size(CSSPixels item_size_contribution, Vector<GridTrack&>& spanned_tracks, Match matcher);