-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
REGRESSION (263724@main): Jumpiness and jitteriness in scrolling on searchfox.org #14718
Conversation
EWS run on current version of this PR (hash 3c402c5) |
@@ -3657,7 +3662,12 @@ void LocalFrameView::scheduleScrollToAnchorAndTextFragment() | |||
RefPtr protectedThis = weakThis.get(); | |||
if (!protectedThis) | |||
return; | |||
protectedThis->scrollToAnchorAndTextFragmentNowIfNeeded(); | |||
if (!protectedThis->m_maintainScrollPositionAnchor) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I find this logic hard to follow. What if we just pass the relevant anchor as an argument to scrollToAnchorAndTextFragmentNowIfNeeded()
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That doesn't quite work because various functions called in scrollToAnchorAndTextFragmentNowIfNeeded rely on m_maintainScrollPositionAnchor directly.
β¦earchfox.org https://bugs.webkit.org/show_bug.cgi?id=257576 <rdar://problem/110095194> Reviewed by Simon Fraser. The bug was caused by WebKit no longer clearing the scroll anchoring element upon page load completion. This turned out to be not a Web compatible change. Fix fast/dynamic/anchor-lock.html in another way by remembering to which node scrolling was scheduled in LocalFrameView instead of relying on m_maintainScrollPositionAnchor to be not cleared upon page load completion, which is not generally Web compatible. * LayoutTests/fast/scrolling/scroll-anchoring-after-page-load-expected.html: Added. * LayoutTests/fast/scrolling/scroll-anchoring-after-page-load.html: Added. * Source/WebCore/loader/FrameLoader.cpp: (WebCore::FrameLoader::completed): * Source/WebCore/page/LocalFrameView.cpp: (WebCore::LocalFrameView::scheduleScrollToAnchorAndTextFragment): * Source/WebCore/page/LocalFrameView.h: Canonical link: https://commits.webkit.org/264940@main
3c402c5
to
7c2201e
Compare
Committed 264940@main (7c2201e): https://commits.webkit.org/264940@main Reviewed commits have been landed. Closing PR #14718 and removing active labels. |
7c2201e
3c402c5
π§ͺ api-mac