summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/Layout/LayoutState.cpp
diff options
context:
space:
mode:
authorSam Atkins <atkinssj@serenityos.org>2022-11-04 17:19:11 +0000
committerLinus Groh <mail@linusgroh.de>2023-01-05 17:42:31 +0100
commit76047d19326ee546fce548c40383cfabf4536da0 (patch)
tree15aff2e4ef9749ac29352da1772bd537299b01eb /Userland/Libraries/LibWeb/Layout/LayoutState.cpp
parent700ba0007f9cbb8632836ecb0ef6498603d3b957 (diff)
downloadserenity-76047d19326ee546fce548c40383cfabf4536da0.zip
LibWeb: Convert InlineLevelIterator/LineBox/LineBuilder to new px units
Diffstat (limited to 'Userland/Libraries/LibWeb/Layout/LayoutState.cpp')
-rw-r--r--Userland/Libraries/LibWeb/Layout/LayoutState.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/Layout/LayoutState.cpp b/Userland/Libraries/LibWeb/Layout/LayoutState.cpp
index 60a7b52ed8..7eeac066ab 100644
--- a/Userland/Libraries/LibWeb/Layout/LayoutState.cpp
+++ b/Userland/Libraries/LibWeb/Layout/LayoutState.cpp
@@ -123,7 +123,7 @@ float box_baseline(LayoutState const& state, Box const& box)
}
if (!box_state.line_boxes.is_empty())
- return box_state.border_box_top() + box_state.offset.y() + box_state.line_boxes.last().baseline();
+ return box_state.border_box_top() + box_state.offset.y() + box_state.line_boxes.last().baseline().value();
if (box.has_children() && !box.children_are_inline()) {
auto const* child_box = box.last_child_of_type<Box>();
VERIFY(child_box);