LibWeb: Remove unnecessary copying of UsedValues in BFC

This commit is contained in:
Aliaksandr Kalenik 2024-09-08 22:01:41 +02:00 committed by Alexander Kalenik
parent 07aa25ce50
commit 4ba38c55d6
Notes: github-actions[bot] 2024-09-09 10:48:08 +00:00

View file

@ -667,8 +667,8 @@ void BlockFormattingContext::layout_block_level_box(Box const& box, BlockContain
// Otherwise, the y at which we calculate the intrusion by floats might be incorrect.
ensure_sizes_correct_for_left_offset_calculation(li_box);
auto list_item_state = m_state.get(li_box);
auto marker_state = m_state.get(*li_box.marker());
auto const& list_item_state = m_state.get(li_box);
auto const& marker_state = m_state.get(*li_box.marker());
auto offset_y = max(CSSPixels(0), (li_box.marker()->computed_values().line_height() - marker_state.content_height()) / 2);
auto space_used_before_children_formatted = intrusion_by_floats_into_box(list_item_state, offset_y);