From c9f4759329662769093ed8da0c7b1d995d5dd3f4 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sat, 26 Feb 2022 01:10:43 +0100 Subject: [PATCH] LibWeb: Use CSS font-size when computing text fragment content height --- Userland/Libraries/LibWeb/Layout/InlineFormattingContext.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibWeb/Layout/InlineFormattingContext.cpp b/Userland/Libraries/LibWeb/Layout/InlineFormattingContext.cpp index 80341474a9..69922f368e 100644 --- a/Userland/Libraries/LibWeb/Layout/InlineFormattingContext.cpp +++ b/Userland/Libraries/LibWeb/Layout/InlineFormattingContext.cpp @@ -207,7 +207,7 @@ void InlineFormattingContext::generate_line_boxes(LayoutMode layout_mode) item.border_start + item.padding_start, item.padding_end + item.border_end, item.width, - text_node.font().glyph_height()); + text_node.computed_values().font_size()); break; } }