mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-19 16:51:52 +00:00
LibWeb: Don't layout flex descendants in intrinsic layout mode
We already have a check to skip the layout of descendants if the available size is intrinsic, but this is not sufficient in nested intrinsic layout cases, where the available size might be definite even though we are in intrinsic layout mode.
This commit is contained in:
parent
292b566b9f
commit
b51c026f3d
Notes:
github-actions[bot]
2025-03-05 20:41:59 +00:00
Author: https://github.com/kalenikaliaksandr
Commit: b51c026f3d
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3824
1 changed files with 1 additions and 1 deletions
|
@ -153,7 +153,7 @@ void FlexFormattingContext::run(AvailableSpace const& available_space)
|
||||||
// 16. Align all flex lines (per align-content)
|
// 16. Align all flex lines (per align-content)
|
||||||
align_all_flex_lines();
|
align_all_flex_lines();
|
||||||
|
|
||||||
if (available_space.width.is_intrinsic_sizing_constraint() || available_space.height.is_intrinsic_sizing_constraint()) {
|
if (m_layout_mode == LayoutMode::IntrinsicSizing) {
|
||||||
// We're computing intrinsic size for the flex container.
|
// We're computing intrinsic size for the flex container.
|
||||||
determine_intrinsic_size_of_flex_container();
|
determine_intrinsic_size_of_flex_container();
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue