mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 03:37:45 +00:00
LibWeb: Add GridTrack::create_from_definition() in GFC
Introducing method to construct grid track from definition allows to reduce duplication in layout code.
This commit is contained in:
parent
2ebb3639aa
commit
57581735b7
2 changed files with 17 additions and 9 deletions
|
@ -148,6 +148,8 @@ private:
|
|||
|
||||
bool is_gap { false };
|
||||
|
||||
static GridTrack create_from_definition(CSS::ExplicitGridTrack const& definition);
|
||||
|
||||
GridTrack(CSS::GridSize min_track_sizing_function, CSS::GridSize max_track_sizing_function)
|
||||
: min_track_sizing_function(min_track_sizing_function)
|
||||
, max_track_sizing_function(max_track_sizing_function)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue