mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-02 07:37:03 +00:00
LibWeb: Use table_box()
to get root box in TFC
Introduce `table_box()` function that returns table formatting context root box casted to `TableBox` similar to how it's done in other formatting contexts like `root()` in BFC and `flex_container` in FFC. And replace `context_box()` calls in TFC with calls to `table_box()`.
This commit is contained in:
parent
f26eed9633
commit
77a2b151ea
Notes:
sideshowbarker
2024-07-17 06:29:49 +09:00
Author: https://github.com/kalenikaliaksandr
Commit: 77a2b151ea
Pull-request: https://github.com/SerenityOS/serenity/pull/16899
Reviewed-by: https://github.com/awesomekling
2 changed files with 11 additions and 11 deletions
|
@ -19,6 +19,8 @@ public:
|
|||
virtual void run(Box const&, LayoutMode, AvailableSpace const&) override;
|
||||
virtual CSSPixels automatic_content_height() const override;
|
||||
|
||||
TableBox const& table_box() const { return static_cast<TableBox const&>(context_box()); }
|
||||
|
||||
private:
|
||||
void calculate_row_column_grid(Box const&);
|
||||
void compute_table_measures();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue