mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 06:07:44 +00:00
LibWeb: Add record_grid_placement() helper in GFC
When placement position is found we always want to do following: - Mark the occupied cells in the occupation grid - Add the item to the list of placed items Therefore, having helper that does both is useful
This commit is contained in:
parent
2a3891781c
commit
749dcac196
2 changed files with 11 additions and 9 deletions
|
@ -266,6 +266,7 @@ private:
|
|||
void place_item_with_row_position(Box const& child_box);
|
||||
void place_item_with_column_position(Box const& child_box, int& auto_placement_cursor_x, int& auto_placement_cursor_y);
|
||||
void place_item_with_no_declared_position(Box const& child_box, int& auto_placement_cursor_x, int& auto_placement_cursor_y);
|
||||
void record_grid_placement(GridItem);
|
||||
|
||||
void initialize_grid_tracks_from_definition(GridDimension);
|
||||
void initialize_grid_tracks_for_columns_and_rows();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue