diff options
author | Egor Ananyin <ananinegor@gmail.com> | 2021-04-22 10:59:04 +0300 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-04-22 19:17:10 +0200 |
commit | 174c94047933cd11763231fd3250d04c5ca33340 (patch) | |
tree | b099e2faaa4f04f44e9d0202627607db6204e552 /Userland/Libraries/LibWeb/Layout/FormattingContext.cpp | |
parent | 0eedf3bfea889596a492363fac46524691f8e772 (diff) | |
download | serenity-174c94047933cd11763231fd3250d04c5ca33340.zip |
LibWeb: Fix height computation (again) :^)
Height computation algorithm is actually
different for absolutely positioned boxes
and block formatting contexts (where it doesn't include floats)
Fixes #6408
Diffstat (limited to 'Userland/Libraries/LibWeb/Layout/FormattingContext.cpp')
-rw-r--r-- | Userland/Libraries/LibWeb/Layout/FormattingContext.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/Layout/FormattingContext.cpp b/Userland/Libraries/LibWeb/Layout/FormattingContext.cpp index dfeeaa3f93..412ad77b59 100644 --- a/Userland/Libraries/LibWeb/Layout/FormattingContext.cpp +++ b/Userland/Libraries/LibWeb/Layout/FormattingContext.cpp @@ -160,7 +160,7 @@ static Gfx::FloatSize solve_replaced_size_constraint(float w, float h, const Rep return { w, h }; } -float FormattingContext::compute_auto_height_for_block_level_element(const Box& box) +static float compute_auto_height_for_block_level_element(const Box& box) { Optional<float> top; Optional<float> bottom; |