1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 13:37:45 +00:00

LibWeb: Store table cell indices and spans in PaintableBox

The adjacency information is required to position borders correctly
between columns and rows.
This commit is contained in:
Andi Gallo 2023-07-01 02:58:11 +00:00 committed by Andreas Kling
parent 98c5efc385
commit f6d2a21d27
4 changed files with 25 additions and 1 deletions

View file

@ -125,6 +125,9 @@ void LayoutState::commit()
if (used_values.override_borders_data().has_value()) {
paintable_box.set_override_borders_data(used_values.override_borders_data().value());
}
if (used_values.table_cell_coordinates().has_value()) {
paintable_box.set_table_cell_coordinates(used_values.table_cell_coordinates().value());
}
if (is<Layout::BlockContainer>(box)) {
for (auto& line_box : used_values.line_boxes) {