LibWeb: Don't crash when processing a transition with value none

This commit is contained in:
Tim Ledbetter 2025-04-23 22:24:35 +01:00 committed by Andreas Kling
parent 4b9abdb963
commit fc1026984c
Notes: github-actions[bot] 2025-04-23 22:01:16 +00:00

View file

@ -912,7 +912,7 @@ void StyleComputer::for_each_property_expanding_shorthands(PropertyID property_i
set_longhand_property(CSS::PropertyID::TransitionProperty, CSSKeywordValue::create(Keyword::All));
set_longhand_property(CSS::PropertyID::TransitionDuration, TimeStyleValue::create(CSS::Time::make_seconds(0)));
set_longhand_property(CSS::PropertyID::TransitionDelay, TimeStyleValue::create(CSS::Time::make_seconds(0)));
set_longhand_property(CSS::PropertyID::TransitionTimingFunction, CSSKeywordValue::create(Keyword::Ease));
set_longhand_property(CSS::PropertyID::TransitionTimingFunction, EasingStyleValue::create(EasingStyleValue::CubicBezier::ease()));
return;
}
auto const& transitions = value.as_transition().transitions();