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
This commit is contained in:
Sam Atkins 2023-03-30 14:08:44 +01:00 committed by Andreas Kling
parent 53a4a31af2
commit c4afa79fed
Notes: sideshowbarker 2024-07-17 10:08:28 +09:00
2 changed files with 6 additions and 6 deletions

View file

@ -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;

View file

@ -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 {