LibWeb: Change grid item placement to look for area by boundary lines

Areas are disassembled into boundary lines on `build_grid_areas()` step,
so we can always use them to find grid item's position during placement.
This way we support both ways to define area: `grid-template-areas` and
implicitly using `-start` and `-end` boundary line names.
This commit is contained in:
Aliaksandr Kalenik 2024-07-17 21:15:27 +02:00 committed by Andreas Kling
commit 7a1f3f7ae3
Notes: sideshowbarker 2024-07-18 23:47:00 +09:00
4 changed files with 45 additions and 10 deletions

View file

@ -161,8 +161,6 @@ private:
void init_grid_lines(GridDimension);
HashMap<String, GridArea> m_grid_areas;
Vector<GridTrack> m_grid_rows;
Vector<GridTrack> m_grid_columns;