Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 1368da9dddedc19b324d0ea1818c5f7632b9bd59
      
https://github.com/WebKit/WebKit/commit/1368da9dddedc19b324d0ea1818c5f7632b9bd59
  Author: Alexsander Damaceno <[email protected]>
  Date:   2025-03-11 (Tue, 11 Mar 2025)

  Changed paths:
    A LayoutTests/fast/events/mouse-cursor-change-02-expected.txt
    A LayoutTests/fast/events/mouse-cursor-change-02.html
    M LayoutTests/platform/ios/TestExpectations
    M LayoutTests/platform/win/TestExpectations
    M LayoutTests/platform/wpe/TestExpectations
    M Source/WebCore/dom/Document.cpp

  Log Message:
  -----------
  Fix Cursor is not updated when an element position changes
https://bugs.webkit.org/show_bug.cgi?id=53340

Reviewed by Alan Baradlay.

When an element is re-laid out, the cursor does not change its style until the 
mouse is moved because this triggers EventHandler::selectCursor.
This issue is resolved by calling a cursor update function to update the cursor 
type during document layout.

* Source/WebCore/dom/Document.cpp:
(WebCore::Document::updateLayout):
* LayoutTests/fast/events/mouse-cursor-change-02-expected.txt: Added.
* LayoutTests/fast/events/mouse-cursor-change-02.html: Added.
* LayoutTests/platform/ios/TestExpectations:
* LayoutTests/platform/win/TestExpectations:
* LayoutTests/platform/wpe/TestExpectations:

Canonical link: https://commits.webkit.org/291948@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

Reply via email to