Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 99b736b108034efd1b8c06c1807e670f9998330e
      
https://github.com/WebKit/WebKit/commit/99b736b108034efd1b8c06c1807e670f9998330e
  Author: Ryosuke Niwa <rn...@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


_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to