mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-25 17:25:08 +02:00
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:
Notes:
github-actions[bot]
2025-10-20 10:29:47 +00:00
Author: https://github.com/Calme1709 Commit: https://github.com/LadybirdBrowser/ladybird/commit/95e26819d93 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6459 Reviewed-by: https://github.com/AtkinsSJ ✅
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user