mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-21 20:15:17 +00:00
LibWeb: Assume flex container forms containing block of abspos items
This avoids a dubious-looking UsedValues lookup.
This commit is contained in:
parent
d43cc82b1c
commit
fee0d408a1
Notes:
github-actions[bot]
2025-02-11 23:40:43 +00:00
Author: https://github.com/awesomekling Commit: https://github.com/LadybirdBrowser/ladybird/commit/fee0d408a1d Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3543
1 changed files with 2 additions and 3 deletions
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue