Pārlūkot izejas kodu

LibWeb: Move BackgroundSize enum to ComputedValues.h

Again, this doesn't belong in StyleValue.h, though this may not be the
ideal place for it either.
Sam Atkins 2 gadi atpakaļ
vecāks
revīzija
b3a7a00ccf

+ 6 - 0
Userland/Libraries/LibWeb/CSS/ComputedValues.h

@@ -82,6 +82,12 @@ public:
     static Vector<Vector<String>> grid_template_areas() { return {}; }
     static Vector<Vector<String>> grid_template_areas() { return {}; }
 };
 };
 
 
+enum class BackgroundSize {
+    Contain,
+    Cover,
+    LengthPercentage,
+};
+
 struct BackgroundLayerData {
 struct BackgroundLayerData {
     RefPtr<CSS::AbstractImageStyleValue const> background_image { nullptr };
     RefPtr<CSS::AbstractImageStyleValue const> background_image { nullptr };
     CSS::BackgroundAttachment attachment { CSS::BackgroundAttachment::Scroll };
     CSS::BackgroundAttachment attachment { CSS::BackgroundAttachment::Scroll };

+ 0 - 6
Userland/Libraries/LibWeb/CSS/StyleValue.h

@@ -36,12 +36,6 @@
 
 
 namespace Web::CSS {
 namespace Web::CSS {
 
 
-enum class BackgroundSize {
-    Contain,
-    Cover,
-    LengthPercentage,
-};
-
 // 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 {