-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ScrollingTree mac] Fix scrolling when event region and scroll contai…
…ner are distinct https://bugs.webkit.org/show_bug.cgi?id=258255 rdar://110954175 Reviewed by Simon Fraser. The current code (mac) assumes that the platform layer which reacts to a scroll event is also the one containing the scroll container but it's not always the case (like WPT example: when the scroll container has pointer-event:none but some child still reacts to event). * LayoutTests/imported/w3c/web-platform-tests/pointerevents/pointerevent_hit_test_scroll_visible_descendant-expected.txt: * Source/WebCore/page/scrolling/mac/ScrollingTreeMac.mm: (ScrollingTreeMac::scrollingNodeForPoint): * Source/WebCore/platform/graphics/cocoa/WebCoreCALayerExtras.h: (WebCore::collectDescendantLayersAtPoint): * Source/WebCore/platform/graphics/cocoa/WebCoreCALayerExtras.mm: (WebCore::collectDescendantLayersAtPoint): (WebCore::layersAtPointToCheckForScrolling): * Source/WebKit/UIProcess/RemoteLayerTree/mac/RemoteScrollingTreeMac.mm: (WebKit::RemoteScrollingTreeMac::scrollingNodeForPoint): Canonical link: https://commits.webkit.org/270094@main
- Loading branch information
Showing
5 changed files
with
89 additions
and
27 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
...platform-tests/pointerevents/pointerevent_hit_test_scroll_visible_descendant-expected.txt
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,3 +1,3 @@ | ||
|
||
FAIL Wheel-scroll over pointer-events: auto descendant scrolls pointer-events: none scroller. assert_equals: Incorrect element scrolled expected "overlay" but got "root" | ||
PASS Wheel-scroll over pointer-events: auto descendant scrolls pointer-events: none scroller. | ||
|
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