mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-04 15:45:25 +00:00
Revert "LibWeb/CSS: Rename CalculatedStyleValue -> CSSMathValue"
This reverts commit 76daba3069.
We're going to need separate types for the JS-exposed style values, so
it doesn't make sense for us to match their names with our internal
types.
This commit is contained in:
committed by
Andreas Kling
parent
34f78ca152
commit
69a0f28d04
@@ -94,6 +94,7 @@ public:
|
||||
BackgroundSize,
|
||||
BasicShape,
|
||||
BorderRadius,
|
||||
Calculated,
|
||||
Color,
|
||||
ConicGradient,
|
||||
Content,
|
||||
@@ -116,7 +117,6 @@ public:
|
||||
Keyword,
|
||||
Length,
|
||||
LinearGradient,
|
||||
Math,
|
||||
MathDepth,
|
||||
Number,
|
||||
OpenTypeTagged,
|
||||
@@ -170,6 +170,10 @@ public:
|
||||
BorderRadiusStyleValue const& as_border_radius() const;
|
||||
BorderRadiusStyleValue& as_border_radius() { return const_cast<BorderRadiusStyleValue&>(const_cast<CSSStyleValue const&>(*this).as_border_radius()); }
|
||||
|
||||
bool is_calculated() const { return type() == Type::Calculated; }
|
||||
CalculatedStyleValue const& as_calculated() const;
|
||||
CalculatedStyleValue& as_calculated() { return const_cast<CalculatedStyleValue&>(const_cast<CSSStyleValue const&>(*this).as_calculated()); }
|
||||
|
||||
bool is_color() const { return type() == Type::Color; }
|
||||
CSSColorValue const& as_color() const;
|
||||
CSSColorValue& as_color() { return const_cast<CSSColorValue&>(const_cast<CSSStyleValue const&>(*this).as_color()); }
|
||||
@@ -254,10 +258,6 @@ public:
|
||||
LinearGradientStyleValue const& as_linear_gradient() const;
|
||||
LinearGradientStyleValue& as_linear_gradient() { return const_cast<LinearGradientStyleValue&>(const_cast<CSSStyleValue const&>(*this).as_linear_gradient()); }
|
||||
|
||||
bool is_math() const { return type() == Type::Math; }
|
||||
CSSMathValue const& as_math() const;
|
||||
CSSMathValue& as_math() { return const_cast<CSSMathValue&>(const_cast<CSSStyleValue const&>(*this).as_math()); }
|
||||
|
||||
bool is_math_depth() const { return type() == Type::MathDepth; }
|
||||
MathDepthStyleValue const& as_math_depth() const;
|
||||
MathDepthStyleValue& as_math_depth() { return const_cast<MathDepthStyleValue&>(const_cast<CSSStyleValue const&>(*this).as_math_depth()); }
|
||||
|
||||
Reference in New Issue
Block a user