diff options
author | Andreas Kling <kling@serenityos.org> | 2022-07-25 23:55:20 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-07-26 00:04:21 +0200 |
commit | bd48d9521a4c60ffa1a6e7b0a8bc6b14e1b063ec (patch) | |
tree | 4f4c57bfa88d5563371f6b38ca1db244cddcec42 /Userland/Libraries/LibWeb/Layout/FlexFormattingContext.cpp | |
parent | 16c173de4375f1002f76ed6b3d1e5a150bd18863 (diff) | |
download | serenity-bd48d9521a4c60ffa1a6e7b0a8bc6b14e1b063ec.zip |
LibWeb: Simplify more code with CSS::LengthPercentage::is_auto()
Diffstat (limited to 'Userland/Libraries/LibWeb/Layout/FlexFormattingContext.cpp')
-rw-r--r-- | Userland/Libraries/LibWeb/Layout/FlexFormattingContext.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Userland/Libraries/LibWeb/Layout/FlexFormattingContext.cpp b/Userland/Libraries/LibWeb/Layout/FlexFormattingContext.cpp index 71a526cbe0..6a7b1fba78 100644 --- a/Userland/Libraries/LibWeb/Layout/FlexFormattingContext.cpp +++ b/Userland/Libraries/LibWeb/Layout/FlexFormattingContext.cpp @@ -393,15 +393,15 @@ bool FlexFormattingContext::is_cross_auto(Box const& box) const bool FlexFormattingContext::is_main_axis_margin_first_auto(Box const& box) const { if (is_row_layout()) - return box.computed_values().margin().left.length().is_auto(); - return box.computed_values().margin().top.length().is_auto(); + return box.computed_values().margin().left.is_auto(); + return box.computed_values().margin().top.is_auto(); } bool FlexFormattingContext::is_main_axis_margin_second_auto(Box const& box) const { if (is_row_layout()) - return box.computed_values().margin().right.length().is_auto(); - return box.computed_values().margin().bottom.length().is_auto(); + return box.computed_values().margin().right.is_auto(); + return box.computed_values().margin().bottom.is_auto(); } void FlexFormattingContext::set_main_size(Box const& box, float size) |