mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:17:44 +00:00
LibWeb: Refactor GridTrack maintenance in the GFC
Refactor the m_grid_columns and m_grid_rows to be maintained in the class, which will make it easier to later create functions relating to them.
This commit is contained in:
parent
f7bd1edde3
commit
202620e80c
2 changed files with 38 additions and 38 deletions
|
@ -25,6 +25,16 @@ private:
|
|||
bool is_auto_positioned_row(CSS::GridTrackPlacement const&, CSS::GridTrackPlacement const&) const;
|
||||
bool is_auto_positioned_column(CSS::GridTrackPlacement const&, CSS::GridTrackPlacement const&) const;
|
||||
bool is_auto_positioned_track(CSS::GridTrackPlacement const&, CSS::GridTrackPlacement const&) const;
|
||||
|
||||
struct GridTrack {
|
||||
CSS::GridTrackSize min_track_sizing_function;
|
||||
CSS::GridTrackSize max_track_sizing_function;
|
||||
float base_size { 0 };
|
||||
float growth_limit { 0 };
|
||||
};
|
||||
|
||||
Vector<GridTrack> m_grid_rows;
|
||||
Vector<GridTrack> m_grid_columns;
|
||||
};
|
||||
|
||||
class OccupationGrid {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue