Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 0678a98c864ee36f0114ea4e7d303fd07788a822
      
https://github.com/WebKit/WebKit/commit/0678a98c864ee36f0114ea4e7d303fd07788a822
  Author: Richard Robinson <[email protected]>
  Date:   2024-07-19 (Fri, 19 Jul 2024)

  Changed paths:
    M LayoutTests/TestExpectations
    A 
LayoutTests/fast/events/mac/pointer-event-uses-platform-event-timestamp-expected.txt
    A 
LayoutTests/fast/events/mac/pointer-event-uses-platform-event-timestamp.html
    M LayoutTests/platform/mac/TestExpectations
    M Source/WebCore/dom/Element.cpp
    M Source/WebCore/dom/MouseEvent.cpp
    M Source/WebCore/dom/MouseEvent.h
    M Source/WebCore/dom/PointerEvent.cpp
    M Source/WebCore/html/HTMLAttachmentElement.cpp

  Log Message:
  -----------
  [Pointer Events] Pointer events generated from platform mouse events should 
use the platform event's timestamp
https://bugs.webkit.org/show_bug.cgi?id=276802
rdar://132051812

Reviewed by Abrar Rahman Protyasha.

Like mouse events, pointer events that are generated from a platform event 
should use that event's
timestamp, instead of generating its own timestamp when the Event itself is 
constructed.

This is more correct and is necessary to ensure coalesced events are properly 
in monotonically
increasing order. The explicit parameter also aids in helping to more easily 
reason about where an
event's timestamp is being sourced from.

* Source/WebCore/dom/Element.cpp:
(WebCore::Element::dispatchMouseEvent):
* Source/WebCore/dom/MouseEvent.cpp:
(WebCore::MouseEvent::create):
(WebCore::MouseEvent::MouseEvent):
* Source/WebCore/dom/MouseEvent.h:
* Source/WebCore/dom/PointerEvent.cpp:
(WebCore::PointerEvent::PointerEvent):
* Source/WebCore/html/HTMLAttachmentElement.cpp:

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