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

LibWeb: Remove duplicated auto height computation

Note that these two implementation differ, but the one in
FormattingContext.cpp seems to be more complete. It is also more recent.
This commit is contained in:
Ben Wiederhake 2021-10-27 23:48:06 +02:00 committed by Andreas Kling
parent 84b15cc7b1
commit 934360583f
3 changed files with 22 additions and 59 deletions

View file

@ -55,6 +55,11 @@ protected:
static float tentative_width_for_replaced_element(const ReplacedBox&, const CSS::Length& width);
static float tentative_height_for_replaced_element(const ReplacedBox&, const CSS::Length& height);
enum ConsiderFloats {
Yes,
No,
};
static float compute_auto_height_for_block_level_element(Box const&, ConsiderFloats consider_floats = ConsiderFloats::Yes);
ShrinkToFitResult calculate_shrink_to_fit_widths(Box&);