mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
LibWeb: Support calc within linear() easing function
This commit is contained in:
Notes:
github-actions[bot]
2025-10-20 10:29:34 +00:00
Author: https://github.com/Calme1709 Commit: https://github.com/LadybirdBrowser/ladybird/commit/2f83356c0f0 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6459 Reviewed-by: https://github.com/AtkinsSJ ✅
@@ -22,8 +22,8 @@ public:
|
||||
static Linear identity();
|
||||
|
||||
struct Stop {
|
||||
double output;
|
||||
Optional<double> input;
|
||||
ValueComparingNonnullRefPtr<StyleValue const> output;
|
||||
ValueComparingRefPtr<StyleValue const> input;
|
||||
|
||||
bool operator==(Stop const&) const = default;
|
||||
};
|
||||
@@ -90,6 +90,8 @@ public:
|
||||
|
||||
virtual String to_string(SerializationMode mode) const override { return m_function.to_string(mode); }
|
||||
|
||||
virtual ValueComparingNonnullRefPtr<StyleValue const> absolutized(ComputationContext const&) const override;
|
||||
|
||||
bool properties_equal(EasingStyleValue const& other) const { return m_function == other.m_function; }
|
||||
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user