Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 487c9dfe271c5adf23677f733fa2b812f005ce70
https://github.com/WebKit/WebKit/commit/487c9dfe271c5adf23677f733fa2b812f005ce70
Author: Nikolaos Mouchtaris <[email protected]>
Date: 2023-01-23 (Mon, 23 Jan 2023)
Changed paths:
A
LayoutTests/fast/scrolling/ios/overscroll-behavior-non-scrollable-document-expected.txt
A
LayoutTests/fast/scrolling/ios/overscroll-behavior-non-scrollable-document.html
M
LayoutTests/fast/scrolling/sync-scroll-overscroll-behavior-unscrollable-iframe.html
M Source/WebCore/page/FrameView.cpp
M Source/WebCore/rendering/RenderLayerScrollableArea.cpp
Log Message:
-----------
overscroll-behavior: none doesn't prevent overscroll when page is too small
to scroll
https://bugs.webkit.org/show_bug.cgi?id=244232
rdar://99018981
Reviewed by Simon Fraser.
We should not disallow overscroll behavior on a non-scrollable document
since it should prevent rubberbanding if overscroll behavior ia none
* Source/WebCore/page/FrameView.cpp:
(WebCore::FrameView::horizontalOverscrollBehavior const):
(WebCore::FrameView::verticalOverscrollBehavior const):
* Source/WebCore/rendering/RenderLayerScrollableArea.cpp:
(WebCore::RenderLayerScrollableArea::horizontalOverscrollBehavior const):
(WebCore::RenderLayerScrollableArea::verticalOverscrollBehavior const):
Canonical link: https://commits.webkit.org/259227@main
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes