diff options
author | Sam Atkins <atkinssj@serenityos.org> | 2022-02-18 16:50:17 +0000 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-02-18 19:04:37 +0100 |
commit | 356d8bcfe8a90f5dff6c661d37e1cf3ccf2a184a (patch) | |
tree | b40a430500c0925b0eeedb1c9068f381a1aa9e62 /Userland/Libraries/LibWeb/Layout/BlockFormattingContext.cpp | |
parent | b715943035654fb1ce3a4c78d2af2f0e4bdb9ed1 (diff) | |
download | serenity-356d8bcfe8a90f5dff6c661d37e1cf3ccf2a184a.zip |
LibWeb: Remove Length::Type::Undefined! :^)
Diffstat (limited to 'Userland/Libraries/LibWeb/Layout/BlockFormattingContext.cpp')
-rw-r--r-- | Userland/Libraries/LibWeb/Layout/BlockFormattingContext.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibWeb/Layout/BlockFormattingContext.cpp b/Userland/Libraries/LibWeb/Layout/BlockFormattingContext.cpp index eefe68c32d..ad964baba3 100644 --- a/Userland/Libraries/LibWeb/Layout/BlockFormattingContext.cpp +++ b/Userland/Libraries/LibWeb/Layout/BlockFormattingContext.cpp @@ -295,7 +295,7 @@ float BlockFormattingContext::compute_theoretical_height(Box const& box) height = compute_height_for_replaced_element(verify_cast<ReplacedBox>(box)); } else { if (!box.computed_values().height().has_value() - || (box.computed_values().height()->is_length() && box.computed_values().height()->length().is_undefined_or_auto()) + || (box.computed_values().height()->is_length() && box.computed_values().height()->length().is_auto()) || (computed_values.height().has_value() && computed_values.height()->is_percentage() && !is_absolute(containing_block.computed_values().height()))) { height = compute_auto_height_for_block_level_element(box, ConsiderFloats::No); } else { @@ -441,7 +441,7 @@ void BlockFormattingContext::layout_block_level_children(BlockContainer& block_c if (layout_mode != LayoutMode::Default) { auto& width = block_container.computed_values().width(); - if (!width.has_value() || (width->is_length() && width->length().is_undefined_or_auto())) + if (!width.has_value() || (width->is_length() && width->length().is_auto())) block_container.set_content_width(content_width); } } |