LibWeb/CSS: Inline EasingStyleValue::CubicBezier::operator==()

For whatever reason, this method in particular ends up failing to link
into WebContent with a subsequent change. It's small and simple, so
just inline it.
This commit is contained in:
Sam Atkins 2025-09-26 14:30:05 +01:00 committed by Andreas Kling
parent 3d141ac6a1
commit aa8bf6372f
2 changed files with 4 additions and 6 deletions

View File

@ -60,11 +60,6 @@ EasingStyleValue::Steps EasingStyleValue::Steps::step_end()
return steps;
}
bool EasingStyleValue::CubicBezier::operator==(Web::CSS::EasingStyleValue::CubicBezier const& other) const
{
return x1 == other.x1 && y1 == other.y1 && x2 == other.x2 && y2 == other.y2;
}
// https://drafts.csswg.org/css-easing/#linear-canonicalization
EasingStyleValue::Linear::Linear(Vector<EasingStyleValue::Linear::Stop> stops)
{

View File

@ -61,7 +61,10 @@ public:
mutable Vector<CachedSample> m_cached_x_samples {};
bool operator==(CubicBezier const&) const;
bool operator==(CubicBezier const& other) const
{
return x1 == other.x1 && y1 == other.y1 && x2 == other.x2 && y2 == other.y2;
}
double evaluate_at(double input_progress, bool before_flag) const;
String to_string(SerializationMode) const;