From c4afa79fed95ba8e9a430c30e1494efe0c3d1ec4 Mon Sep 17 00:00:00 2001 From: Sam Atkins Date: Thu, 30 Mar 2023 14:08:44 +0100 Subject: [PATCH] LibWeb: Move FlexBasis enum to ComputedValues.h This may not be the ideal place for this, but it definitely doesn't belong in StyleValue.h --- Userland/Libraries/LibWeb/CSS/ComputedValues.h | 6 ++++++ Userland/Libraries/LibWeb/CSS/StyleValue.h | 6 ------ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Userland/Libraries/LibWeb/CSS/ComputedValues.h b/Userland/Libraries/LibWeb/CSS/ComputedValues.h index ffd41cce0d..21ee5c13bb 100644 --- a/Userland/Libraries/LibWeb/CSS/ComputedValues.h +++ b/Userland/Libraries/LibWeb/CSS/ComputedValues.h @@ -117,6 +117,12 @@ struct TransformOrigin { CSS::LengthPercentage y { Percentage(50) }; }; +enum class FlexBasis { + Content, + LengthPercentage, + Auto, +}; + struct FlexBasisData { CSS::FlexBasis type { CSS::FlexBasis::Auto }; Optional length_percentage; diff --git a/Userland/Libraries/LibWeb/CSS/StyleValue.h b/Userland/Libraries/LibWeb/CSS/StyleValue.h index f9c4d036e5..042193324e 100644 --- a/Userland/Libraries/LibWeb/CSS/StyleValue.h +++ b/Userland/Libraries/LibWeb/CSS/StyleValue.h @@ -42,12 +42,6 @@ enum class BackgroundSize { LengthPercentage, }; -enum class FlexBasis { - Content, - LengthPercentage, - Auto, -}; - // FIXME: Named PositionValue to avoid conflicts with enums, but this represents a struct PositionValue { enum class HorizontalPreset {