1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 16:47:36 +00:00

LibWeb: Resolve table border conflicts with cells

Build a mapping from coordinates to cells and use it to resolve
border conflicts between adjacent cells.
This commit is contained in:
Andi Gallo 2023-07-09 03:02:54 +00:00 committed by Andreas Kling
parent d8bdf26917
commit e30662a8a0
4 changed files with 131 additions and 2 deletions

View file

@ -134,7 +134,7 @@ private:
ConflictingSide side;
};
const CSS::BorderData& border_data_conflicting_edge(ConflictingEdge const& conflicting_edge);
static const CSS::BorderData& border_data_conflicting_edge(ConflictingEdge const& conflicting_edge);
class BorderConflictFinder {
public:
@ -149,6 +149,7 @@ private:
};
Vector<Cell> m_cells;
Vector<Vector<Optional<Cell const&>>> m_cells_by_coordinate;
Vector<Column> m_columns;
Vector<Row> m_rows;
};