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
Turn macOS smooth keyboard scrolling on by default
https://bugs.webkit.org/show_bug.cgi?id=228159 rdar://80912063 Reviewed by Tim Horton and Wenson Hsieh. No tests added. Set the default value for EventHandlerDrivenSmoothKeyboardScrollingEnabled to true in WebKit. * LayoutTests/css3/scroll-snap/scroll-padding-overflow-paging.html: Updated to reflect non-instananeous scrolling. * LayoutTests/fast/repaint/resources/fixed-move-after-keyboard-scroll-iframe.html: Updated to reflect non-instananeous scrolling. * LayoutTests/fast/scrolling/arrow-key-scroll-in-rtl-document-expected.txt: * LayoutTests/fast/scrolling/arrow-key-scroll-in-rtl-document.html: * LayoutTests/platform/mac-wk1/fast/scrolling/arrow-key-scroll-in-rtl-document-expected.txt: Added. Updated these tests to reflect the new distance scrolled. * Source/WTF/Scripts/Preferences/WebPreferencesInternal.yaml: `EventHandlerDrivenSmoothKeyboardScrollingEnabled` is now true on default for WebKit. * Source/WebCore/page/EventHandler.cpp: (WebCore::EventHandler::startKeyboardScrollAnimationOnEnclosingScrollableContainer): Added check if renderer is null to fix crash in LayoutTests/fast/forms/select/select-change-type-on-focus. * Tools/TestWebKitAPI/Tests/WebKit/SpacebarScrolling.cpp: (TestWebKitAPI::didRunJavascript): (TestWebKitAPI::TEST): Updated to reflect non-instananeous scrolling. Canonical link: https://commits.webkit.org/255031@main
- Loading branch information
Showing
8 changed files
with
40 additions
and
10 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
PASS: scrollLeft is -120 | ||
scrollLeft is -40 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
scrollLeft is -120 |
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