mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 09:19:03 +00:00
LibWeb: Assume flex container forms containing block of abspos items
This avoids a dubious-looking UsedValues lookup.
This commit is contained in:
committed by
Andreas Kling
parent
d43cc82b1c
commit
fee0d408a1
@@ -183,9 +183,8 @@ void FlexFormattingContext::parent_context_did_dimension_child_root_box()
|
||||
|
||||
for (auto& child : flex_container().contained_abspos_children()) {
|
||||
auto& box = as<Box>(*child);
|
||||
auto& cb_state = m_state.get(*box.containing_block());
|
||||
auto available_width = AvailableSize::make_definite(cb_state.content_width() + cb_state.padding_left + cb_state.padding_right);
|
||||
auto available_height = AvailableSize::make_definite(cb_state.content_height() + cb_state.padding_top + cb_state.padding_bottom);
|
||||
auto available_width = AvailableSize::make_definite(m_flex_container_state.content_width() + m_flex_container_state.padding_left + m_flex_container_state.padding_right);
|
||||
auto available_height = AvailableSize::make_definite(m_flex_container_state.content_height() + m_flex_container_state.padding_top + m_flex_container_state.padding_bottom);
|
||||
layout_absolutely_positioned_element(box, AvailableSpace(available_width, available_height));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user