LibWeb: Remove unnecessary copying of UsedValues in BFC
This commit is contained in:
parent
07aa25ce50
commit
4ba38c55d6
Notes:
github-actions[bot]
2024-09-09 10:48:08 +00:00
Author: https://github.com/kalenikaliaksandr Commit: https://github.com/LadybirdBrowser/ladybird/commit/4ba38c55d6b Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1335
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue