summaryrefslogtreecommitdiff
path: root/Userland
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2022-10-11 22:22:23 +0200
committerAndreas Kling <kling@serenityos.org>2022-10-11 22:23:13 +0200
commit0e295f727a2da39af1e296b987a7c949c3d5d024 (patch)
tree154dc8139f4329af07c998d44b7ce8f3b90b7874 /Userland
parentf754f456808fef6e9013382140d58a72ca9a40f4 (diff)
downloadserenity-0e295f727a2da39af1e296b987a7c949c3d5d024.zip
LibWeb: Fix dumb typos in solver helpers for abspos height
Diffstat (limited to 'Userland')
-rw-r--r--Userland/Libraries/LibWeb/Layout/FormattingContext.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibWeb/Layout/FormattingContext.cpp b/Userland/Libraries/LibWeb/Layout/FormattingContext.cpp
index 71c08708c1..1b348f79b7 100644
--- a/Userland/Libraries/LibWeb/Layout/FormattingContext.cpp
+++ b/Userland/Libraries/LibWeb/Layout/FormattingContext.cpp
@@ -740,7 +740,7 @@ void FormattingContext::compute_height_for_absolutely_positioned_non_replaced_el
};
auto solve_for_margin_top = [&] {
- height = CSS::Size::make_px(
+ margin_top = CSS::Length::make_px(
height_of_containing_block
- top.resolved(box, height_of_containing_block_as_length).to_px(box)
- box.computed_values().border_top().width
@@ -753,7 +753,7 @@ void FormattingContext::compute_height_for_absolutely_positioned_non_replaced_el
};
auto solve_for_margin_bottom = [&] {
- height = CSS::Size::make_px(
+ margin_bottom = CSS::Length::make_px(
height_of_containing_block
- top.resolved(box, height_of_containing_block_as_length).to_px(box)
- margin_top.length().to_px(box)