LibWeb: Pass available inner space to inline-level SVG layout

This commit is contained in:
Andreas Kling 2023-03-27 13:51:36 +02:00
commit 3b76cc5245
Notes: sideshowbarker 2024-07-18 03:20:18 +09:00

View file

@ -115,7 +115,7 @@ void InlineFormattingContext::dimension_box_on_line(Box const& box, LayoutMode l
auto& replaced = verify_cast<ReplacedBox>(box); auto& replaced = verify_cast<ReplacedBox>(box);
if (is<SVGSVGBox>(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_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)); box_state.set_content_height(compute_height_for_replaced_element(m_state, replaced, *m_available_space));