Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 7a86140eda9a6a942d20858ebc75c292813e2cb5
https://github.com/WebKit/WebKit/commit/7a86140eda9a6a942d20858ebc75c292813e2cb5
Author: Lily Spiniolas <[email protected]>
Date: 2026-04-07 (Tue, 07 Apr 2026)
Changed paths:
M Tools/Scripts/webkitpy/layout_tests/run_webkit_tests.py
M Tools/Scripts/webkitpy/port/driver.py
M Tools/WebKitTestRunner/Options.cpp
M Tools/WebKitTestRunner/PlatformWebView.h
M Tools/WebKitTestRunner/TestController.cpp
M Tools/WebKitTestRunner/TestOptions.cpp
M Tools/WebKitTestRunner/TestOptions.h
M Tools/WebKitTestRunner/mac/EventSenderProxy.mm
M Tools/WebKitTestRunner/mac/PlatformWebViewMac.mm
Log Message:
-----------
[WKTR] Add `--show-cursor` option on macOS
https://bugs.webkit.org/show_bug.cgi?id=311678
rdar://174268167
Reviewed by Aditya Keerthi.
When WKTR is run with `--show-window` and `--show-cursor`,
an overlay view is displayed on top of the window. In this
view, we draw the current cursor image at the current cursor
location.
* Tools/Scripts/webkitpy/layout_tests/run_webkit_tests.py:
(parse_args):
* Tools/Scripts/webkitpy/port/driver.py:
(Driver.cmd_line):
* Tools/WebKitTestRunner/Options.cpp:
(WTR::handleOptionShowCursor):
(WTR::OptionsHandler::OptionsHandler):
* Tools/WebKitTestRunner/PlatformWebView.h:
* Tools/WebKitTestRunner/TestController.cpp:
(WTR::TestController::cursorDidChange):
(WTR::TestController::resetStateToConsistentValues):
* Tools/WebKitTestRunner/TestOptions.cpp:
(WTR::TestOptions::defaults):
(WTR::TestOptions::keyTypeMapping):
* Tools/WebKitTestRunner/TestOptions.h:
(WTR::TestOptions::shouldShowCursor const):
* Tools/WebKitTestRunner/mac/EventSenderProxy.mm:
(WTR::EventSenderProxy::mouseMoveTo):
* Tools/WebKitTestRunner/mac/PlatformWebViewMac.mm:
(-[WTRCursorOverlayView hitTest:]):
(-[WTRCursorOverlayView updateWithCursor:]):
(-[WTRCursorOverlayView hotSpot]):
(WTR::PlatformWebView::PlatformWebView):
(WTR::PlatformWebView::~PlatformWebView):
(WTR::PlatformWebView::windowSnapshotImage):
(WTR::PlatformWebView::setCursorOverlayPosition):
(WTR::PlatformWebView::updateCursorOverlayImage):
Canonical link: https://commits.webkit.org/310765@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications