summaryrefslogtreecommitdiff
path: root/Userland/Libraries
diff options
context:
space:
mode:
authorSam Atkins <atkinssj@serenityos.org>2023-03-30 14:11:28 +0100
committerAndreas Kling <kling@serenityos.org>2023-03-30 21:29:50 +0200
commitb3a7a00ccfd448e473d740685d3cd6c5e0b04bc1 (patch)
tree86717e7e207a6b254e503c4a7c60422ee659da6b /Userland/Libraries
parentc4afa79fed95ba8e9a430c30e1494efe0c3d1ec4 (diff)
downloadserenity-b3a7a00ccfd448e473d740685d3cd6c5e0b04bc1.zip
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.
Diffstat (limited to 'Userland/Libraries')
-rw-r--r--Userland/Libraries/LibWeb/CSS/ComputedValues.h6
-rw-r--r--Userland/Libraries/LibWeb/CSS/StyleValue.h6
2 files changed, 6 insertions, 6 deletions
diff --git a/Userland/Libraries/LibWeb/CSS/ComputedValues.h b/Userland/Libraries/LibWeb/CSS/ComputedValues.h
index 21ee5c13bb..bf5abfc1f3 100644
--- a/Userland/Libraries/LibWeb/CSS/ComputedValues.h
+++ b/Userland/Libraries/LibWeb/CSS/ComputedValues.h
@@ -82,6 +82,12 @@ public:
static Vector<Vector<String>> grid_template_areas() { return {}; }
};
+enum class BackgroundSize {
+ Contain,
+ Cover,
+ LengthPercentage,
+};
+
struct BackgroundLayerData {
RefPtr<CSS::AbstractImageStyleValue const> background_image { nullptr };
CSS::BackgroundAttachment attachment { CSS::BackgroundAttachment::Scroll };
diff --git a/Userland/Libraries/LibWeb/CSS/StyleValue.h b/Userland/Libraries/LibWeb/CSS/StyleValue.h
index 042193324e..7d4d09ef4b 100644
--- a/Userland/Libraries/LibWeb/CSS/StyleValue.h
+++ b/Userland/Libraries/LibWeb/CSS/StyleValue.h
@@ -36,12 +36,6 @@
namespace Web::CSS {
-enum class BackgroundSize {
- Contain,
- Cover,
- LengthPercentage,
-};
-
// FIXME: Named PositionValue to avoid conflicts with enums, but this represents a <position>
struct PositionValue {
enum class HorizontalPreset {