[webkit-changes] [WebKit/WebKit] f5fa0d: Add WebKit::fromAPI(WKEventModifiers) to convert t...
EWS
noreply at github.com
Mon Nov 21 14:33:07 PST 2022
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: f5fa0df8982c4d7af3eb18bd91f74571fb2fcb64
https://github.com/WebKit/WebKit/commit/f5fa0df8982c4d7af3eb18bd91f74571fb2fcb64
Author: David Kilzer <ddkilzer at apple.com>
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
More information about the webkit-changes
mailing list