[webkit-changes] [WebKit/WebKit] 99b736: LocalFrameView::performPostLayoutTasks should not ...
Ryosuke Niwa
noreply at github.com
Thu May 4 16:39:17 PDT 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 99b736b108034efd1b8c06c1807e670f9998330e
https://github.com/WebKit/WebKit/commit/99b736b108034efd1b8c06c1807e670f9998330e
Author: Ryosuke Niwa <rniwa at webkit.org>
Date: 2023-05-04 (Thu, 04 May 2023)
Changed paths:
M Source/WebCore/page/LocalFrameView.cpp
M Source/WebCore/page/LocalFrameView.h
Log Message:
-----------
LocalFrameView::performPostLayoutTasks should not synchronously scroll to or focus an element
https://bugs.webkit.org/show_bug.cgi?id=256300
Reviewed by Alan Baradlay.
Schedule a task to scroll to a fragment or text fragment in LocalFrameView::performPostLayoutTasks
instead of synchronously triggering a scroll.
* Source/WebCore/page/LocalFrameView.cpp:
(WebCore::LocalFrameView::maintainScrollPositionAtAnchor):
(WebCore::LocalFrameView::scheduleScrollToAnchorAndTextFragment): Added.
(WebCore::LocalFrameView::scrollToAnchorAndTextFragmentNowIfNeeded): Added.
* Source/WebCore/page/LocalFrameView.h:
Canonical link: https://commits.webkit.org/263699@main
More information about the webkit-changes
mailing list