mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-01 12:07:14 +02:00
LibWeb: Absolutize transition hint in ColorStopListElement
This commit is contained in:
committed by
Jelle Raaijmakers
parent
7385569a02
commit
9314cc3a30
Notes:
github-actions[bot]
2026-01-02 20:49:33 +00:00
Author: https://github.com/matjojo Commit: https://github.com/LadybirdBrowser/ladybird/commit/9314cc3a30d Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/7301 Reviewed-by: https://github.com/gmta ✅
@@ -25,7 +25,9 @@ ColorStopListElement ColorStopListElement::absolutized(ComputationContext const&
|
||||
};
|
||||
|
||||
return {
|
||||
.transition_hint = transition_hint,
|
||||
.transition_hint = transition_hint.map([&context](ColorHint const& color_hint) {
|
||||
return ColorHint { color_hint.value->absolutized(context) };
|
||||
}),
|
||||
.color_stop = {
|
||||
.color = absolutize_if_nonnull(color_stop.color),
|
||||
.position = absolutize_if_nonnull(color_stop.position),
|
||||
|
||||
Reference in New Issue
Block a user