Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 342a27a71e7c14e7d5ea23a29dd3c1f2ec2c8585
https://github.com/WebKit/WebKit/commit/342a27a71e7c14e7d5ea23a29dd3c1f2ec2c8585
Author: Alexsander Damaceno <[email protected]>
Date: 2025-05-14 (Wed, 14 May 2025)
Changed paths:
A LayoutTests/fast/events/cursors/mouse-cursor-resizer-expected.txt
A LayoutTests/fast/events/cursors/mouse-cursor-resizer.html
M Source/WebCore/page/EventHandler.cpp
Log Message:
-----------
Resize cursor doesn't show if there's text under the resize control
https://bugs.webkit.org/show_bug.cgi?id=210935
Reviewed by Simon Fraser.
The resizer cursor was not appearing over the resize control when the text
was aligned to the right because it was overlapping with control resizer
coordinates.
This was happening because the hit test detected the Text element when in
resize control coordinates,
causing RenderText to be used for determining the cursor type.
The fix ensures that when RenderText is the hit-tested object, we use its
parent renderer instead to check if the cursor is over the resizer control.
* LayoutTests/fast/events/cursors/mouse-cursor-resizer-expected.txt: Added.
* LayoutTests/fast/events/cursors/mouse-cursor-resizer.html: Added.
* Source/WebCore/page/EventHandler.cpp:
(WebCore::EventHandler::selectCursor):
(WebCore::EventHandler::updateMouseEventTargetNode):
Canonical link: https://commits.webkit.org/294907@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes