mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 09:07: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:
parent
98c5efc385
commit
f6d2a21d27
4 changed files with 25 additions and 1 deletions
|
@ -126,6 +126,16 @@ public:
|
|||
void set_override_borders_data(BordersData const& override_borders_data) { m_override_borders_data = override_borders_data; };
|
||||
auto const& override_borders_data() const { return m_override_borders_data; }
|
||||
|
||||
struct TableCellCoordinates {
|
||||
size_t row_index;
|
||||
size_t column_index;
|
||||
size_t row_span;
|
||||
size_t column_span;
|
||||
};
|
||||
|
||||
void set_table_cell_coordinates(TableCellCoordinates const& table_cell_coordinates) { m_table_cell_coordinates = table_cell_coordinates; }
|
||||
auto const& table_cell_coordinates() const { return m_table_cell_coordinates; }
|
||||
|
||||
enum class ShrinkRadiiForBorders {
|
||||
Yes,
|
||||
No
|
||||
|
@ -166,6 +176,7 @@ private:
|
|||
Optional<BorderRadiusCornerClipper> mutable m_overflow_corner_radius_clipper;
|
||||
|
||||
Optional<BordersData> m_override_borders_data;
|
||||
Optional<TableCellCoordinates> m_table_cell_coordinates;
|
||||
};
|
||||
|
||||
class PaintableWithLines final : public PaintableBox {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue