[webkit-changes] [WebKit/WebKit] d3d140: PointerEvent and PointerEventIOS should share tilt...
Abrar Rahman Protyasha
noreply at github.com
Wed Aug 14 14:10:36 PDT 2024
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: d3d1407655456554f0f3421198bc0b67f90a02ad
https://github.com/WebKit/WebKit/commit/d3d1407655456554f0f3421198bc0b67f90a02ad
Author: Abrar Rahman Protyasha <a_protyasha at apple.com>
Date: 2024-08-14 (Wed, 14 Aug 2024)
Changed paths:
M Source/WebCore/dom/PointerEvent.cpp
M Source/WebCore/dom/PointerEvent.h
M Source/WebCore/dom/ios/PointerEventIOS.cpp
Log Message:
-----------
PointerEvent and PointerEventIOS should share tilt-to-spherical angle conversion code
https://bugs.webkit.org/show_bug.cgi?id=278095
rdar://133829451
Reviewed by Tim Horton.
Following 282017 at main, there were two code snippets that performed the
same spherical-to-tilt angle conversion, one in PointerEvent.cpp and
the other in PointerEventIOS.cpp. This patch fixes said duplication by
exposing tilt-to-spherical (and vice versa) conversion methods as
private static methods in the PointerEvent class.
* Source/WebCore/dom/PointerEvent.cpp:
(WebCore::PointerEvent::angleFromTilt):
(WebCore::PointerEvent::tiltFromAngle):
(WebCore::angleFromTilt): Deleted.
(WebCore::tiltFromAngle): Deleted.
* Source/WebCore/dom/PointerEvent.h:
* Source/WebCore/dom/ios/PointerEventIOS.cpp:
(WebCore::m_predictedEvents):
Canonical link: https://commits.webkit.org/282255@main
To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications
More information about the webkit-changes
mailing list