mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 00:47: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:
parent
53a4a31af2
commit
c4afa79fed
2 changed files with 6 additions and 6 deletions
|
@ -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;
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue