From a6718e5f3bdbfede4be33b4d977bbdf6e757ad53 Mon Sep 17 00:00:00 2001 From: Aliaksandr Kalenik Date: Tue, 15 Oct 2024 20:08:48 +0200 Subject: [PATCH] LibWeb: Resolve vertical borders for inline nodes Preparation for upcoming change where InlinePaintable will no longer be responsible for doing that. --- Userland/Libraries/LibWeb/Layout/InlineLevelIterator.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Userland/Libraries/LibWeb/Layout/InlineLevelIterator.cpp b/Userland/Libraries/LibWeb/Layout/InlineLevelIterator.cpp index 89c1991d8fd..28c2d5d6af6 100644 --- a/Userland/Libraries/LibWeb/Layout/InlineLevelIterator.cpp +++ b/Userland/Libraries/LibWeb/Layout/InlineLevelIterator.cpp @@ -38,6 +38,8 @@ void InlineLevelIterator::enter_node_with_box_model_metrics(Layout::NodeWithStyl used_values.border_left = computed_values.border_left().width; used_values.padding_left = computed_values.padding().left().to_px(node, m_containing_block_used_values.content_width()); + used_values.border_top = computed_values.border_top().width; + used_values.border_bottom = computed_values.border_bottom().width; used_values.padding_bottom = computed_values.padding().bottom().to_px(node, m_containing_block_used_values.content_width()); used_values.padding_top = computed_values.padding().top().to_px(node, m_containing_block_used_values.content_width());