mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 15:48:12 +00:00
LibWeb: More work on table layout
Table row layout is now split into two phases: 1. Compute all the column widths (even taking colspan into account!) 2. Place all cells at the correct x,y offsets based on column widths. Both phases visit all rows and all cells.
This commit is contained in:
parent
365703e3f3
commit
62893a54cc
4 changed files with 53 additions and 7 deletions
|
@ -38,6 +38,8 @@ public:
|
|||
virtual void layout(LayoutMode = LayoutMode::Default) override;
|
||||
|
||||
private:
|
||||
size_t column_count() const;
|
||||
|
||||
virtual bool is_table_row_group() const override { return true; }
|
||||
virtual const char* class_name() const override { return "LayoutTableRowGroup"; }
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue