mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 19:59:17 +00:00
LibWeb: Fix crash for calculated transition duration/delays
As the parser was trying to directly unwrap an unresolved duration. Currently we are outputting the wrong results for the serialized duration, but this is still a step forwards. Fixes a crash seen on: https://evaparish.com/blog/how-i-edit
This commit is contained in:
parent
945c58c7c1
commit
18520561e7
Notes:
sideshowbarker
2024-07-17 05:09:48 +09:00
Author: https://github.com/shannonbooth
Commit: 18520561e7
Pull-request: https://github.com/SerenityOS/serenity/pull/23867
Reviewed-by: https://github.com/AtkinsSJ ✅
5 changed files with 24 additions and 6 deletions
|
@ -696,8 +696,8 @@ void StyleComputer::for_each_property_expanding_shorthands(PropertyID property_i
|
|||
Array<Vector<ValueComparingNonnullRefPtr<StyleValue const>>, 4> transition_values;
|
||||
for (auto const& transition : transitions) {
|
||||
transition_values[0].append(*transition.property_name);
|
||||
transition_values[1].append(TimeStyleValue::create(transition.duration));
|
||||
transition_values[2].append(TimeStyleValue::create(transition.delay));
|
||||
transition_values[1].append(transition.duration.as_style_value());
|
||||
transition_values[2].append(transition.delay.as_style_value());
|
||||
if (transition.easing)
|
||||
transition_values[3].append(*transition.easing);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue