Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: c42e31f1f0791a14c01324c2056ab86d3f4144ec
      
https://github.com/WebKit/WebKit/commit/c42e31f1f0791a14c01324c2056ab86d3f4144ec
  Author: Abrar Rahman Protyasha <[email protected]>
  Date:   2026-07-19 (Sun, 19 Jul 2026)

  Changed paths:
    M Source/WebKit/Shared/WebMouseEvent.cpp
    M Source/WebKit/Shared/WebMouseEvent.h
    M Source/WebKit/Shared/mac/WebEventFactory.h
    M Source/WebKit/Shared/mac/WebEventFactory.mm

  Log Message:
  -----------
  Add inverse synthetic click type and modifier flag converters
https://bugs.webkit.org/show_bug.cgi?id=319747
rdar://182587030

Reviewed by Richard Robinson.

In this patch, we add the reverse of two existing conversions, symmetric
with their forward counterparts in the same files:

- coreSyntheticClickType(): WebMouseEventSyntheticClickType ->
  WebCore::SyntheticClickType, mirrors syntheticClickType().
- WebEventFactory::toWebEventModifierFlags(): NSEventModifierFlags ->
  OptionSet<WebEventModifier>, mirrors toNSEventModifierFlags().

These helpers will be adopted in forthcoming patches.

* Source/WebKit/Shared/WebMouseEvent.cpp:
(WebKit::coreSyntheticClickType):
* Source/WebKit/Shared/WebMouseEvent.h:
* Source/WebKit/Shared/mac/WebEventFactory.h:
* Source/WebKit/Shared/mac/WebEventFactory.mm:
(WebKit::WebEventFactory::toWebEventModifierFlags):

Canonical link: https://commits.webkit.org/317509@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to