LibWeb: Separate use time easing functions from EasingStyleValue

In the future there will be different methods of creating these use-time
easing functions (e.g. from `KeywordStyleValue`s)
This commit is contained in:
Callum Law
2025-10-11 12:57:26 +13:00
committed by Sam Atkins
parent 0e30de82cc
commit 95e26819d9
Notes: github-actions[bot] 2025-10-20 10:29:47 +00:00
13 changed files with 343 additions and 246 deletions

View File

@@ -36,7 +36,6 @@ public:
bool operator==(Linear const&) const = default;
double evaluate_at(double input_progress, bool before_flag) const;
String to_string(SerializationMode) const;
Linear(Vector<Stop> stops);
@@ -66,7 +65,6 @@ public:
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;
};
@@ -79,14 +77,12 @@ public:
bool operator==(Steps const&) const = default;
double evaluate_at(double input_progress, bool before_flag) const;
String to_string(SerializationMode) const;
};
struct WEB_API Function : public Variant<Linear, CubicBezier, Steps> {
using Variant::Variant;
double evaluate_at(double input_progress, bool before_flag) const;
String to_string(SerializationMode) const;
};