Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Scroll To Text Fragments fragments should alwasy be scrolled to the c…
…ente of the screen. https://bugs.webkit.org/show_bug.cgi?id=245169 <rdar://99904303> Reviewed by Tim Horton. Our code that scrolls selections into visible does not scroll them if they are already visible at the current page scroll. We are wanting this to always go to the center so that it is easier to hold the position, rather than have the scrolled text jump around a bit as additional content is loaded in. * Source/WebCore/editing/Editor.cpp: (WebCore::TemporarySelectionChange::setSelection): * Source/WebCore/editing/Editor.h: * Source/WebCore/editing/FrameSelection.cpp: (WebCore::FrameSelection::setSelection): (WebCore::FrameSelection::updateAndRevealSelection): * Source/WebCore/editing/FrameSelection.h: * Source/WebCore/page/FrameView.cpp: (WebCore::FrameView::scrollToFragment): (WebCore::FrameView::textFragmentIndicatorTimerFired): Canonical link: https://commits.webkit.org/254477@main
- Loading branch information
1 parent
d6faf5b
commit 6ae0bcb1c73ce6ea808e09557db62a0dbc5446d6
Showing
5 changed files
with
16 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters