From 1e832dd91afb15ed1d028a5b96717bd98a23573b Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Wed, 13 Oct 2021 23:25:59 +0200 Subject: LibWeb: Add CSS::FlexBasisData::is_definite() This will allow some more expressive code in FlexFormattingContext. --- Userland/Libraries/LibWeb/CSS/ComputedValues.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Userland/Libraries/LibWeb/CSS') diff --git a/Userland/Libraries/LibWeb/CSS/ComputedValues.h b/Userland/Libraries/LibWeb/CSS/ComputedValues.h index d9537e79cd..44ced91eb9 100644 --- a/Userland/Libraries/LibWeb/CSS/ComputedValues.h +++ b/Userland/Libraries/LibWeb/CSS/ComputedValues.h @@ -51,6 +51,8 @@ struct Transformation { struct FlexBasisData { CSS::FlexBasis type { CSS::FlexBasis::Auto }; CSS::Length length {}; + + bool is_definite() const { return type == CSS::FlexBasis::Length; } }; struct BoxShadowData { -- cgit v1.2.3