LibWeb: Allow BFC auto height calculation on any Layout::Box

This algorithm is reused in abspos sizing, and so should not be specific
to block containers (even if the name suggests it.)
This commit is contained in:
Andreas Kling 2023-01-23 14:45:52 +01:00
commit d5480a44e5
Notes: sideshowbarker 2024-07-17 06:40:21 +09:00
3 changed files with 6 additions and 6 deletions

View file

@ -102,7 +102,7 @@ protected:
static CSSPixels tentative_width_for_replaced_element(LayoutState const&, ReplacedBox const&, CSS::Size const& computed_width, AvailableSpace const&);
static CSSPixels tentative_height_for_replaced_element(LayoutState const&, ReplacedBox const&, CSS::Size const& computed_height, AvailableSpace const&);
CSSPixels compute_auto_height_for_block_formatting_context_root(BlockContainer const&) const;
CSSPixels compute_auto_height_for_block_formatting_context_root(Box const&) const;
ShrinkToFitResult calculate_shrink_to_fit_widths(Box const&);