Sfoglia il codice sorgente

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
Sam Atkins 2 anni fa
parent
commit
c4afa79fed

+ 6 - 0
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;

+ 0 - 6
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 {