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

LibWeb: Use AvailableSpace when referring to the grid width

Should use AvailableSpace to get the grid width instead of
box_state.content_width().

This change was imposed on me by the compiler as in a future commit I
will remove the only reference to the available_space parameter.
This commit is contained in:
martinfalisse 2022-11-06 11:18:23 +01:00 committed by Andreas Kling
parent 60341995fe
commit 7474827747
2 changed files with 18 additions and 15 deletions

View file

@ -38,7 +38,7 @@ private:
Vector<GridTrackSizeConstraints> m_grid_rows;
Vector<GridTrackSizeConstraints> m_grid_columns;
float get_free_space_x(Box const&);
float get_free_space_x(AvailableSpace const& available_space);
float get_free_space_y(Box const&);
int get_line_index_by_line_name(String const& line_name, CSS::GridTrackSizeList);