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:
Andreas Kling 2020-06-13 00:12:23 +02:00
commit 62893a54cc
Notes: sideshowbarker 2024-07-19 05:41:23 +09:00
4 changed files with 53 additions and 7 deletions

View file

@ -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"; }
};