LibWeb/CSS: Rename background-repeat related symbols to align with spec

These will be used for the mask-repeat property as well in an upcoming
commit, hence the more generic names. Also, this more closely matches
the names used in the spec.
This commit is contained in:
InvalidUsernameException 2025-07-18 20:36:09 +02:00 committed by Sam Atkins
commit add3a095d8
Notes: github-actions[bot] 2025-08-06 22:10:59 +00:00
17 changed files with 151 additions and 150 deletions

View file

@ -16,7 +16,6 @@
#include <LibWeb/CSS/StyleValues/AnchorSizeStyleValue.h>
#include <LibWeb/CSS/StyleValues/AnchorStyleValue.h>
#include <LibWeb/CSS/StyleValues/AngleStyleValue.h>
#include <LibWeb/CSS/StyleValues/BackgroundRepeatStyleValue.h>
#include <LibWeb/CSS/StyleValues/BackgroundSizeStyleValue.h>
#include <LibWeb/CSS/StyleValues/BasicShapeStyleValue.h>
#include <LibWeb/CSS/StyleValues/BorderImageSliceStyleValue.h>
@ -58,6 +57,7 @@
#include <LibWeb/CSS/StyleValues/RadialGradientStyleValue.h>
#include <LibWeb/CSS/StyleValues/RatioStyleValue.h>
#include <LibWeb/CSS/StyleValues/RectStyleValue.h>
#include <LibWeb/CSS/StyleValues/RepeatStyleStyleValue.h>
#include <LibWeb/CSS/StyleValues/ResolutionStyleValue.h>
#include <LibWeb/CSS/StyleValues/ScrollbarColorStyleValue.h>
#include <LibWeb/CSS/StyleValues/ScrollbarGutterStyleValue.h>
@ -128,10 +128,10 @@ AngleStyleValue const& CSSStyleValue::as_angle() const
return static_cast<AngleStyleValue const&>(*this);
}
BackgroundRepeatStyleValue const& CSSStyleValue::as_background_repeat() const
RepeatStyleStyleValue const& CSSStyleValue::as_repeat_style() const
{
VERIFY(is_background_repeat());
return static_cast<BackgroundRepeatStyleValue const&>(*this);
VERIFY(is_repeat_style());
return static_cast<RepeatStyleStyleValue const&>(*this);
}
BackgroundSizeStyleValue const& CSSStyleValue::as_background_size() const