LibWeb: Absolutize transition hint in ColorStopListElement

This commit is contained in:
matjojo
2026-01-02 17:48:06 +01:00
committed by Jelle Raaijmakers
parent 7385569a02
commit 9314cc3a30
Notes: github-actions[bot] 2026-01-02 20:49:33 +00:00
2 changed files with 5 additions and 1 deletions

View File

@@ -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),