1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 02:27:43 +00:00

LibWeb: Fix min-content initialization for row measures

This ensures that min-content contributions from cells with no content
are computed using their calculated values, which are never considered
for min-content before then. The specification diverges from column
measures algorithm, which doesn't use specified width of cells anywhere.
This commit is contained in:
Andi Gallo 2023-06-26 02:48:09 +00:00 committed by Andreas Kling
parent 5aef8f280f
commit 8afe5ce718
4 changed files with 82 additions and 7 deletions

View file

@ -38,6 +38,8 @@ private:
void calculate_row_column_grid(Box const&);
void compute_cell_measures(AvailableSpace const& available_space);
template<class RowOrColumn>
void initialize_table_measures();
template<class RowOrColumn>
void compute_table_measures();
void compute_table_width();
void distribute_width_to_columns();