[webkit-changes] [WebKit/WebKit] 2d88fb: Share collectDescendantLayersAtPoint() code
Simon Fraser
noreply at github.com
Tue Nov 29 11:03:22 PST 2022
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 2d88fb59358717a051df4d9593f929f1e9ae989b
https://github.com/WebKit/WebKit/commit/2d88fb59358717a051df4d9593f929f1e9ae989b
Author: Simon Fraser <simon.fraser at apple.com>
Date: 2022-11-29 (Tue, 29 Nov 2022)
Changed paths:
M Source/WebCore/page/scrolling/mac/ScrollingTreeMac.mm
M Source/WebCore/platform/graphics/cocoa/WebCoreCALayerExtras.h
M Source/WebCore/platform/graphics/cocoa/WebCoreCALayerExtras.mm
Log Message:
-----------
Share collectDescendantLayersAtPoint() code
https://bugs.webkit.org/show_bug.cgi?id=248446
rdar://102741971
Reviewed by Wenson Hsieh.
Scrolling in the UI process needs to share `collectDescendantLayersAtPoint()` code, so
make it re-usable, and factor out the implementation specific parts by passing in
a function.
* Source/WebCore/page/scrolling/mac/ScrollingTreeMac.mm:
(layerEventRegionContainsPoint):
(ScrollingTreeMac::scrollingNodeForPoint):
(ScrollingTreeMac::eventListenerRegionTypesForPoint const):
(collectDescendantLayersAtPoint): Deleted.
* Source/WebCore/platform/graphics/cocoa/WebCoreCALayerExtras.h:
* Source/WebCore/platform/graphics/cocoa/WebCoreCALayerExtras.mm:
(WebCore::collectDescendantLayersAtPoint):
Canonical link: https://commits.webkit.org/257135@main
More information about the webkit-changes
mailing list