mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:47:44 +00:00
LibWeb: Add missing [as/is]_border_radius_shorthand() methods
This commit is contained in:
parent
d9afc2d6f2
commit
025ee02144
3 changed files with 10 additions and 0 deletions
|
@ -59,6 +59,12 @@ BorderRadiusStyleValue const& StyleValue::as_border_radius() const
|
|||
return static_cast<BorderRadiusStyleValue const&>(*this);
|
||||
}
|
||||
|
||||
BorderRadiusShorthandStyleValue const& StyleValue::as_border_radius_shorthand() const
|
||||
{
|
||||
VERIFY(is_border_radius_shorthand());
|
||||
return static_cast<BorderRadiusShorthandStyleValue const&>(*this);
|
||||
}
|
||||
|
||||
ShadowStyleValue const& StyleValue::as_shadow() const
|
||||
{
|
||||
VERIFY(is_shadow());
|
||||
|
|
|
@ -122,6 +122,7 @@ public:
|
|||
bool is_background_size() const { return type() == Type::BackgroundSize; }
|
||||
bool is_border() const { return type() == Type::Border; }
|
||||
bool is_border_radius() const { return type() == Type::BorderRadius; }
|
||||
bool is_border_radius_shorthand() const { return type() == Type::BorderRadiusShorthand; }
|
||||
bool is_calculated() const { return type() == Type::Calculated; }
|
||||
bool is_color() const { return type() == Type::Color; }
|
||||
bool is_content() const { return type() == Type::Content; }
|
||||
|
@ -156,6 +157,7 @@ public:
|
|||
BackgroundRepeatStyleValue const& as_background_repeat() const;
|
||||
BackgroundSizeStyleValue const& as_background_size() const;
|
||||
BorderRadiusStyleValue const& as_border_radius() const;
|
||||
BorderRadiusShorthandStyleValue const& as_border_radius_shorthand() const;
|
||||
BorderStyleValue const& as_border() const;
|
||||
CalculatedStyleValue const& as_calculated() const;
|
||||
ColorStyleValue const& as_color() const;
|
||||
|
@ -189,6 +191,7 @@ public:
|
|||
BackgroundRepeatStyleValue& as_background_repeat() { return const_cast<BackgroundRepeatStyleValue&>(const_cast<StyleValue const&>(*this).as_background_repeat()); }
|
||||
BackgroundSizeStyleValue& as_background_size() { return const_cast<BackgroundSizeStyleValue&>(const_cast<StyleValue const&>(*this).as_background_size()); }
|
||||
BorderRadiusStyleValue& as_border_radius() { return const_cast<BorderRadiusStyleValue&>(const_cast<StyleValue const&>(*this).as_border_radius()); }
|
||||
BorderRadiusShorthandStyleValue& as_border_radius_shorthand() { return const_cast<BorderRadiusShorthandStyleValue&>(const_cast<StyleValue const&>(*this).as_border_radius_shorthand()); }
|
||||
BorderStyleValue& as_border() { return const_cast<BorderStyleValue&>(const_cast<StyleValue const&>(*this).as_border()); }
|
||||
CalculatedStyleValue& as_calculated() { return const_cast<CalculatedStyleValue&>(const_cast<StyleValue const&>(*this).as_calculated()); }
|
||||
ColorStyleValue& as_color() { return const_cast<ColorStyleValue&>(const_cast<StyleValue const&>(*this).as_color()); }
|
||||
|
|
|
@ -30,6 +30,7 @@ class BackgroundRepeatStyleValue;
|
|||
class BackgroundSizeStyleValue;
|
||||
class BackgroundStyleValue;
|
||||
class BorderRadiusStyleValue;
|
||||
class BorderRadiusShorthandStyleValue;
|
||||
class BorderStyleValue;
|
||||
class CalculatedStyleValue;
|
||||
class ColorStyleValue;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue