diff options
author | Andreas Kling <kling@serenityos.org> | 2022-09-24 13:39:43 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-09-24 13:41:08 +0200 |
commit | 62974160daa4bf7ace57277c592db35fc0d49f01 (patch) | |
tree | d15c983fb2effd665eec72ab59c265927da82d95 /Userland/Libraries/LibWeb/Layout/TableFormattingContext.h | |
parent | b52165c5d76e2b2f30f8339147604c65328f0b75 (diff) | |
download | serenity-62974160daa4bf7ace57277c592db35fc0d49f01.zip |
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.
Diffstat (limited to 'Userland/Libraries/LibWeb/Layout/TableFormattingContext.h')
-rw-r--r-- | Userland/Libraries/LibWeb/Layout/TableFormattingContext.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/Layout/TableFormattingContext.h b/Userland/Libraries/LibWeb/Layout/TableFormattingContext.h index 170fd14969..05690f8e8c 100644 --- a/Userland/Libraries/LibWeb/Layout/TableFormattingContext.h +++ b/Userland/Libraries/LibWeb/Layout/TableFormattingContext.h @@ -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 }; }; } |