mirror of
https://github.com/SerenityOS/serenity
synced 2024-07-23 02:55:15 +00:00
LibWeb: Remove unnecessary double->float->double round trip
This commit is contained in:
parent
88dc5886eb
commit
875661a584
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue