LibWeb: Fix typo in calculate_inner_height
This commit is contained in:
parent
7bc7790912
commit
2b246d980a
Notes:
sideshowbarker
2024-07-17 07:43:05 +09:00
Author: https://github.com/kalenikaliaksandr Commit: https://github.com/SerenityOS/serenity/commit/2b246d980a Pull-request: https://github.com/SerenityOS/serenity/pull/16185
1 changed files with 2 additions and 2 deletions
|
@ -1317,8 +1317,8 @@ CSS::Length FormattingContext::calculate_inner_height(Layout::Box const& box, Av
|
|||
|
||||
auto& computed_values = box.computed_values();
|
||||
if (computed_values.box_sizing() == CSS::BoxSizing::BorderBox) {
|
||||
auto const padding_top = computed_values.padding().left().resolved(box, height_of_containing_block_as_length_for_resolve).resolved(box);
|
||||
auto const padding_bottom = computed_values.padding().right().resolved(box, height_of_containing_block_as_length_for_resolve).resolved(box);
|
||||
auto const padding_top = computed_values.padding().top().resolved(box, height_of_containing_block_as_length_for_resolve).resolved(box);
|
||||
auto const padding_bottom = computed_values.padding().bottom().resolved(box, height_of_containing_block_as_length_for_resolve).resolved(box);
|
||||
|
||||
float inner_height = height.resolved(box, height_of_containing_block_as_length_for_resolve).resolved(box).to_px(box)
|
||||
- computed_values.border_top().width
|
||||
|
|
Loading…
Add table
Reference in a new issue