LibWeb: Remove unnecessary double->float->double round trip

This commit is contained in:
Sam Atkins 2023-11-06 17:40:08 +00:00 committed by Sam Atkins
parent 88dc5886eb
commit 875661a584
Notes: sideshowbarker 2024-07-18 02:13:10 +09:00

View file

@ -750,7 +750,7 @@ StyleComputer::AnimationStepTransition StyleComputer::Animation::step(CSS::Time
auto time_step_ms = time_step.to_milliseconds();
if (delay_ms > time_step_ms) {
remaining_delay = CSS::Time { static_cast<float>(delay_ms - time_step_ms), CSS::Time::Type::Ms };
remaining_delay = CSS::Time { delay_ms - time_step_ms, CSS::Time::Type::Ms };
return AnimationStepTransition::NoTransition;
}