Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: f5fa0df8982c4d7af3eb18bd91f74571fb2fcb64
      
https://github.com/WebKit/WebKit/commit/f5fa0df8982c4d7af3eb18bd91f74571fb2fcb64
  Author: David Kilzer <[email protected]>
  Date:   2022-11-21 (Mon, 21 Nov 2022)

  Changed paths:
    M Source/WebKit/Shared/API/c/WKSharedAPICast.h
    M Source/WebKit/WebProcess/WebPage/WebPage.cpp

  Log Message:
  -----------
  Add WebKit::fromAPI(WKEventModifiers) to convert to 
OptionSet<WebEventModifier>
https://bugs.webkit.org/show_bug.cgi?id=248118
<rdar://102539052>

Reviewed by Darin Adler.

Avoid use of OptionSet<WebEventModifier>::fromRaw() that assumes
WKEventModifiers and WebEventModifier have the same enum values.

* Source/WebKit/Shared/API/c/WKSharedAPICast.h:
(WebKit::fromAPI): Add.
* Source/WebKit/WebProcess/WebPage/WebPage.cpp:
(WebKit::WebPage::simulateMouseDown):
(WebKit::WebPage::simulateMouseUp):
- Use fromAPI() instead of OptionSet<>::fromRaw().

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


_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to