mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 06:07:34 +00:00
LibWeb: Always include floats when computing height:auto for blocks
I'm not sure why we had two modes for this, but floats should always be included in the auto height AFAICT.
This commit is contained in:
parent
6478b460fb
commit
56df05ae44
3 changed files with 18 additions and 24 deletions
|
@ -58,11 +58,7 @@ protected:
|
|||
|
||||
static float tentative_width_for_replaced_element(FormattingState const&, ReplacedBox const&, CSS::Length const& width);
|
||||
static float tentative_height_for_replaced_element(FormattingState const&, ReplacedBox const&, CSS::Length const& height);
|
||||
enum ConsiderFloats {
|
||||
Yes,
|
||||
No,
|
||||
};
|
||||
static float compute_auto_height_for_block_level_element(FormattingState const&, Box const&, ConsiderFloats consider_floats = ConsiderFloats::Yes);
|
||||
static float compute_auto_height_for_block_level_element(FormattingState const&, Box const&);
|
||||
|
||||
ShrinkToFitResult calculate_shrink_to_fit_widths(Box const&);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue