From b3a7a00ccfd448e473d740685d3cd6c5e0b04bc1 Mon Sep 17 00:00:00 2001 From: Sam Atkins Date: Thu, 30 Mar 2023 14:11:28 +0100 Subject: [PATCH] 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. --- Userland/Libraries/LibWeb/CSS/ComputedValues.h | 6 ++++++ Userland/Libraries/LibWeb/CSS/StyleValue.h | 6 ------ 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> grid_template_areas() { return {}; } }; +enum class BackgroundSize { + Contain, + Cover, + LengthPercentage, +}; + struct BackgroundLayerData { RefPtr 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 struct PositionValue { enum class HorizontalPreset {