Clean up state maintenance around animated scrolls
Created attachment 440466 [details] Patch
Comment on attachment 440466 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=440466&action=review Really glad to see this simplification. > Source/WebCore/platform/ScrollView.cpp:530 > + if ((!delegatesScrolling() || currentScrollType() == ScrollType::User) && scrollAnimationStatus() == ScrollAnimationStatus::NotAnimating && newScrollPosition == this->scrollPosition()) I wonder about the combination of testing `scrollAnimationStatus() == ScrollAnimationStatus::NotAnimating` and the call to `scrollAnimator().cancelAnimations();` above. Perhaps `scrollAnimationStatus() == ScrollAnimationStatus::NotAnimating` is always true?
Comment on attachment 440466 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=440466&action=review >> Source/WebCore/platform/ScrollView.cpp:530 >> + if ((!delegatesScrolling() || currentScrollType() == ScrollType::User) && scrollAnimationStatus() == ScrollAnimationStatus::NotAnimating && newScrollPosition == this->scrollPosition()) > > I wonder about the combination of testing `scrollAnimationStatus() == ScrollAnimationStatus::NotAnimating` and the call to `scrollAnimator().cancelAnimations();` above. Perhaps `scrollAnimationStatus() == ScrollAnimationStatus::NotAnimating` is always true? I think you're right.
https://trac.webkit.org/changeset/283716/webkit
<rdar://problem/83984449>