summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2022-09-18 16:10:03 +0200
committerAndreas Kling <kling@serenityos.org>2022-09-18 18:34:42 +0200
commit7bf3b40867be2c28343236d018cebe24f8544e87 (patch)
tree4a2730722a488fd3d72d9030b79cfd4d318db8fb /Userland/Libraries/LibWeb
parent887dac092909c085d4a9a5e4f078ad6d5764f404 (diff)
downloadserenity-7bf3b40867be2c28343236d018cebe24f8544e87.zip
LibWeb: Remove bogus main space restriction in wrapping flex layouts
Diffstat (limited to 'Userland/Libraries/LibWeb')
-rw-r--r--Userland/Libraries/LibWeb/Layout/FlexFormattingContext.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/Userland/Libraries/LibWeb/Layout/FlexFormattingContext.cpp b/Userland/Libraries/LibWeb/Layout/FlexFormattingContext.cpp
index 2043ef29cf..f2b8ca9338 100644
--- a/Userland/Libraries/LibWeb/Layout/FlexFormattingContext.cpp
+++ b/Userland/Libraries/LibWeb/Layout/FlexFormattingContext.cpp
@@ -553,10 +553,6 @@ void FlexFormattingContext::determine_available_main_and_cross_space(bool& main_
if (!main_is_constrained) {
auto available_main_size = containing_block_effective_main_size(flex_container());
main_available_space = available_main_size.value_or(NumericLimits<float>::max()) - sum_of_margin_padding_border_in_main_axis(flex_container());
- if (flex_container().computed_values().flex_wrap() == CSS::FlexWrap::Wrap || flex_container().computed_values().flex_wrap() == CSS::FlexWrap::WrapReverse) {
- main_available_space = specified_main_size(*flex_container().containing_block());
- main_is_constrained = true;
- }
}
}