mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-26 12:17:52 +00:00
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:
parent
166e603c5e
commit
7a1f3f7ae3
Notes:
sideshowbarker
2024-07-18 23:47:00 +09:00
Author: https://github.com/kalenikaliaksandr
Commit: 7a1f3f7ae3
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/691
4 changed files with 45 additions and 10 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue