1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 12:27:35 +00:00

LibWeb: Add FormattingContext::automatic_content_height()

This function should return the automatic height of the formatting
context's root box.

Until now, we've been relying on some magical handshakes between parent
and child context, when negotiating the height of child context root
boxes. This is a step towards something more reasonable.
This commit is contained in:
Andreas Kling 2022-09-24 13:39:43 +02:00
parent b52165c5d7
commit 62974160da
14 changed files with 48 additions and 2 deletions

View file

@ -24,10 +24,13 @@ public:
~TableFormattingContext();
virtual void run(Box const&, LayoutMode) override;
virtual float automatic_content_height() const override;
private:
void calculate_column_widths(Box const& row, CSS::Length const& table_width, Vector<ColumnWidth>& column_widths);
void layout_row(Box const& row, Vector<ColumnWidth>& column_widths);
float m_automatic_content_height { 0 };
};
}