Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 7c8c5cee9e54c77cb923ad6867896a2b1ad1acef
https://github.com/WebKit/WebKit/commit/7c8c5cee9e54c77cb923ad6867896a2b1ad1acef
Author: Jessica Cheung <[email protected]>
Date: 2026-01-27 (Tue, 27 Jan 2026)
Changed paths:
M Source/WebCore/page/DragController.cpp
M Source/WebCore/page/LocalFrame.cpp
M Source/WebCore/page/LocalFrame.h
Log Message:
-----------
Logic in LocalFrame::documentAtPoint is duplicated in other places
https://bugs.webkit.org/show_bug.cgi?id=306288
rdar://168939740
Reviewed by Aditya Keerthi.
In DragController::performDragOperation, there is almost identical logic
to LocalFrame::documentAtPoint. Thus, factor out the shared logic
that can be used in both LocalFrame::documentAtPoint and
DragController::performDragOperation, to a different function
(LocalFrame::hitTestResultAtPoint).
* Source/WebCore/page/DragController.cpp:
(WebCore::DragController::performDragOperation):
* Source/WebCore/page/LocalFrame.cpp:
(WebCore::LocalFrame::hitTestResultAtPoint):
(WebCore::LocalFrame::documentAtPoint):
* Source/WebCore/page/LocalFrame.h:
Canonical link: https://commits.webkit.org/306316@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications