mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-16 21:20:18 +00:00
LibWeb: Add GridTrackSize constructor that initializes values explicitly
This commit is contained in:
parent
56d5177eda
commit
f438c1721c
Notes:
github-actions[bot]
2025-09-26 10:16:30 +00:00
Author: https://github.com/tcl3
Commit: f438c1721c
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6282
Reviewed-by: https://github.com/AtkinsSJ ✅
2 changed files with 9 additions and 3 deletions
|
@ -127,10 +127,15 @@ String GridMinMax::to_string(SerializationMode mode) const
|
|||
return MUST(builder.to_string());
|
||||
}
|
||||
|
||||
GridRepeat::GridRepeat(GridTrackSizeList&& grid_track_size_list, GridRepeatParams const& params)
|
||||
: m_type(params.type)
|
||||
GridRepeat::GridRepeat(GridRepeatType grid_repeat_type, GridTrackSizeList&& grid_track_size_list, size_t repeat_count)
|
||||
: m_type(grid_repeat_type)
|
||||
, m_grid_track_size_list(move(grid_track_size_list))
|
||||
, m_repeat_count(params.count)
|
||||
, m_repeat_count(repeat_count)
|
||||
{
|
||||
}
|
||||
|
||||
GridRepeat::GridRepeat(GridTrackSizeList&& grid_track_size_list, GridRepeatParams const& params)
|
||||
: GridRepeat(params.type, move(grid_track_size_list), params.count)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue