summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/Layout
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2023-03-27 13:51:36 +0200
committerAndreas Kling <kling@serenityos.org>2023-03-27 23:28:07 +0200
commit3b76cc5245dd3e81eea0524f8d471ad9041dfea3 (patch)
tree12aabfff61f682f986f6da41695e686f78fa7533 /Userland/Libraries/LibWeb/Layout
parent4f752ca791549a148bf76572a6ec76f6f8b1ad46 (diff)
downloadserenity-3b76cc5245dd3e81eea0524f8d471ad9041dfea3.zip
LibWeb: Pass available inner space to inline-level SVG layout
Diffstat (limited to 'Userland/Libraries/LibWeb/Layout')
-rw-r--r--Userland/Libraries/LibWeb/Layout/InlineFormattingContext.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/Layout/InlineFormattingContext.cpp b/Userland/Libraries/LibWeb/Layout/InlineFormattingContext.cpp
index 2357e6b044..71db7cce02 100644
--- a/Userland/Libraries/LibWeb/Layout/InlineFormattingContext.cpp
+++ b/Userland/Libraries/LibWeb/Layout/InlineFormattingContext.cpp
@@ -115,7 +115,7 @@ void InlineFormattingContext::dimension_box_on_line(Box const& box, LayoutMode l
auto& replaced = verify_cast<ReplacedBox>(box);
if (is<SVGSVGBox>(box))
- (void)layout_inside(replaced, layout_mode, *m_available_space);
+ (void)layout_inside(replaced, layout_mode, box_state.available_inner_space_or_constraints_from(*m_available_space));
box_state.set_content_width(compute_width_for_replaced_element(m_state, replaced, *m_available_space));
box_state.set_content_height(compute_height_for_replaced_element(m_state, replaced, *m_available_space));