1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 06:57:45 +00:00

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
2 changed files with 6 additions and 6 deletions

View file

@ -117,6 +117,12 @@ struct TransformOrigin {
CSS::LengthPercentage y { Percentage(50) }; CSS::LengthPercentage y { Percentage(50) };
}; };
enum class FlexBasis {
Content,
LengthPercentage,
Auto,
};
struct FlexBasisData { struct FlexBasisData {
CSS::FlexBasis type { CSS::FlexBasis::Auto }; CSS::FlexBasis type { CSS::FlexBasis::Auto };
Optional<CSS::LengthPercentage> length_percentage; Optional<CSS::LengthPercentage> length_percentage;

View file

@ -42,12 +42,6 @@ enum class BackgroundSize {
LengthPercentage, LengthPercentage,
}; };
enum class FlexBasis {
Content,
LengthPercentage,
Auto,
};
// FIXME: Named PositionValue to avoid conflicts with enums, but this represents a <position> // FIXME: Named PositionValue to avoid conflicts with enums, but this represents a <position>
struct PositionValue { struct PositionValue {
enum class HorizontalPreset { enum class HorizontalPreset {