Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 3d11a2d1d35380ba4ca144506f430f04910c98ed
https://github.com/WebKit/WebKit/commit/3d11a2d1d35380ba4ca144506f430f04910c98ed
Author: Abrar Rahman Protyasha <[email protected]>
Date: 2026-03-17 (Tue, 17 Mar 2026)
Changed paths:
M Tools/WebKitTestRunner/ios/HIDEventGenerator.mm
Log Message:
-----------
[WKTR] HIDEventGenerator InterpolationType should be a scoped enum
https://bugs.webkit.org/show_bug.cgi?id=310071
rdar://172715161
Reviewed by Lily Spiniolas.
This is a fairly mechanical change to take InterpolationType in the HID
event generator from a C-style enum to a scoped enum class.
We make some changes to how interpolation types are associated with
interpolation functors. Instead of storing the function pointers in a
C-style array and using enum value-based indices for access, we instead
provide an `interpolationFunctor` method that takes in an interpolation
type value and spits out the associated function.
Also, some drive-by whitespace cleanup here and there.
No tests because no change in behavior.
* Tools/WebKitTestRunner/ios/HIDEventGenerator.mm:
(linearInterpolation):
(interpolationFunctor):
(interpolationFromString):
(-[HIDEventGenerator interpolatedEvents:]):
Canonical link: https://commits.webkit.org/309434@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications