summaryrefslogtreecommitdiff
path: root/Userland
diff options
context:
space:
mode:
authorSam Atkins <atkinssj@serenityos.org>2023-03-30 14:08:44 +0100
committerAndreas Kling <kling@serenityos.org>2023-03-30 21:29:50 +0200
commitc4afa79fed95ba8e9a430c30e1494efe0c3d1ec4 (patch)
tree71e671dac4f2a56a3f2d85998a3bebdd53dfbe02 /Userland
parent53a4a31af27e11c197b6cc4603fe6f5d63c7686c (diff)
downloadserenity-c4afa79fed95ba8e9a430c30e1494efe0c3d1ec4.zip
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
Diffstat (limited to 'Userland')
-rw-r--r--Userland/Libraries/LibWeb/CSS/ComputedValues.h6
-rw-r--r--Userland/Libraries/LibWeb/CSS/StyleValue.h6
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<CSS::LengthPercentage> 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 <position>
struct PositionValue {
enum class HorizontalPreset {