Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: ef6f17c72eedaaaab06c75497fa417c6c0b6cc45
https://github.com/WebKit/WebKit/commit/ef6f17c72eedaaaab06c75497fa417c6c0b6cc45
Author: Lily Spiniolas <[email protected]>
Date: 2025-09-08 (Mon, 08 Sep 2025)
Changed paths:
M LayoutTests/platform/ios/TestExpectations
A
LayoutTests/pointerevents/ios/pointer-event-twist-on-stylus-down-expected.txt
A LayoutTests/pointerevents/ios/pointer-event-twist-on-stylus-down.html
A LayoutTests/pointerevents/pointer-event-constructors-twist-expected.txt
A LayoutTests/pointerevents/pointer-event-constructors-twist.html
A LayoutTests/pointerevents/pointer-event-twist-on-tap-or-click-expected.txt
A LayoutTests/pointerevents/pointer-event-twist-on-tap-or-click.html
M Source/WTF/Scripts/Preferences/UnifiedWebPreferences.yaml
M Source/WebCore/dom/Touch.cpp
M Source/WebCore/dom/Touch.h
M Source/WebCore/dom/ios/PointerEventIOS.cpp
M Source/WebCore/page/EventHandler.cpp
M Source/WebCore/platform/PlatformTouchPoint.h
M Source/WebKit/Shared/WebEvent.serialization.in
M Source/WebKit/Shared/WebEventConversion.cpp
M Source/WebKit/Shared/WebTouchEvent.h
M Source/WebKit/Shared/ios/NativeWebTouchEventIOS.mm
M Source/WebKit/UIProcess/ios/WKContentView.h
M Source/WebKit/UIProcess/ios/WKContentView.mm
M Source/WebKit/UIProcess/ios/WKTouchEventsGestureRecognizer.h
M Source/WebKit/UIProcess/ios/WKTouchEventsGestureRecognizer.mm
M Tools/TestWebKitAPI/Tests/ios/TouchEventTests.mm
Log Message:
-----------
[Experimental] Expose roll angle of Apple Pencil for `twist` Pointer Event
attribute
https://bugs.webkit.org/show_bug.cgi?id=298276
rdar://159705821
Reviewed by Abrar Rahman Protyasha.
Expose `rollAngle` of `UITouch` as the value for pointer event property
`twist`. This feature is disabled by default.
Added layout tests to ensure the default value of `twist` remains 0
for pointer events originating from mouse presses, stylus taps, and
taps.
* LayoutTests/platform/ios/TestExpectations:
*
LayoutTests/pointerevents/ios/pointer-event-twist-on-stylus-down-expected.txt:
Added.
* LayoutTests/pointerevents/ios/pointer-event-twist-on-stylus-down.html: Added.
* LayoutTests/pointerevents/pointer-event-constructors-twist-expected.txt:
Added.
* LayoutTests/pointerevents/pointer-event-constructors-twist.html: Added.
* LayoutTests/pointerevents/pointer-event-twist-on-tap-or-click-expected.txt:
Added.
* LayoutTests/pointerevents/pointer-event-twist-on-tap-or-click.html: Added.
* Source/WTF/Scripts/Preferences/UnifiedWebPreferences.yaml:
* Source/WebCore/dom/Touch.cpp:
(WebCore::Touch::Touch):
(WebCore::Touch::cloneWithNewTarget const):
* Source/WebCore/dom/Touch.h:
(WebCore::Touch::create):
(WebCore::Touch::twist const):
* Source/WebCore/dom/ios/PointerEventIOS.cpp:
(WebCore::m_predictedEvents):
* Source/WebCore/page/EventHandler.cpp:
(WebCore::SyntheticTouchPoint::SyntheticTouchPoint):
* Source/WebCore/platform/PlatformTouchPoint.h:
(WebCore::PlatformTouchPoint::twist const):
* Source/WebKit/Shared/WebEvent.serialization.in:
* Source/WebKit/Shared/WebEventConversion.cpp:
(WebKit::WebKit2PlatformTouchPoint::WebKit2PlatformTouchPoint):
* Source/WebKit/Shared/WebTouchEvent.h:
(WebKit::WebPlatformTouchPoint::WebPlatformTouchPoint):
(WebKit::WebPlatformTouchPoint::setTwist):
(WebKit::WebPlatformTouchPoint::twist const):
* Source/WebKit/Shared/ios/NativeWebTouchEventIOS.mm:
(WebKit::NativeWebTouchEvent::extractWebTouchPoints):
* Source/WebKit/UIProcess/ios/WKContentView.h:
* Source/WebKit/UIProcess/ios/WKContentView.mm:
(-[WKContentView _shouldExposeRollAngleAsTwist]):
* Source/WebKit/UIProcess/ios/WKTouchEventsGestureRecognizer.h:
* Source/WebKit/UIProcess/ios/WKTouchEventsGestureRecognizer.mm:
(-[WKTouchEventsGestureRecognizer _touchEventForChildTouch:withParent:]):
(-[WKTouchEventsGestureRecognizer _recordTouches:ofType:forEvent:]):
* Tools/TestWebKitAPI/Tests/ios/TouchEventTests.mm:
Canonical link: https://commits.webkit.org/299701@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes