Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: eb5d9f9dce46beb5496d856bc9185c7ab8148d1f
https://github.com/WebKit/WebKit/commit/eb5d9f9dce46beb5496d856bc9185c7ab8148d1f
Author: Simon Fraser <[email protected]>
Date: 2025-12-11 (Thu, 11 Dec 2025)
Changed paths:
M Source/WebCore/platform/mac/CursorMac.mm
Log Message:
-----------
REGRESSION (300377@main): Some CSS cursor values (move, all-scroll,
ew-resize, ns-resize) do not display the expected cursors
https://bugs.webkit.org/show_bug.cgi?id=303845
rdar://166160746
Reviewed by Tim Horton.
300377@main, which was Safer CPP cleanup, broke the assignment to the static
NSCursor*, which then caused
`WKCoreCursor_coreCursorType()` to fail.
Fix this confusing code by making an NSCursor subclass, and storing the
CoreCursorType inside it; this replaces the old swizzling.
WebCoreCursorBundle was unused, so remove it.
There's no need to cache the WebCustomCursor at this level; `Cursor` objects
are already singletons.
Not testable because an API test can't warp the cursor without user annoyance.
* Source/WebCore/platform/mac/CursorMac.mm:
(-[WebCustomCursor initWithType:]):
(-[WebCustomCursor _coreCursorType]):
(WebCore::cursor):
(WebCore::WKCoreCursor_coreCursorType): Deleted.
(WebCore::createCoreCursorClassSingleton): Deleted.
(WebCore::coreCursorClassSingleton): Deleted.
Canonical link: https://commits.webkit.org/304334@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications