Pass the timestamp for scrolling thread animations through all the serviceScrollAnimation() calls
Created attachment 445510 [details] Patch
Committed r286352 (244711@main): <https://commits.webkit.org/244711@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 445510 [details].
<rdar://problem/85909120>
Comment on attachment 445510 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=445510&action=review > Source/WebCore/page/scrolling/ThreadedScrollingTree.cpp:362 > + auto displayFPS = nominalFramesPerSecond().value_or(FullSpeedFramesPerSecond); > + return 1_s / (double)displayFPS; I’d like to understand more about why the cast to double is needed here. Another way to write this is to make the local variable "displayFPS" have type double, but I think we’d want Seconds to do correct division without requiring a typecast. Maybe if we don’t cast to double we end up doing integer division instead of floating point? But if so, why?