mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +00:00
LibWeb: Remove unnecessary double->float->double round trip
This commit is contained in:
parent
88dc5886eb
commit
875661a584
Notes:
sideshowbarker
2024-07-18 02:13:10 +09:00
Author: https://github.com/AtkinsSJ Commit: https://github.com/SerenityOS/serenity/commit/875661a584 Pull-request: https://github.com/SerenityOS/serenity/pull/21829
1 changed files with 1 additions and 1 deletions
|
@ -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