Diff
Modified: branches/safari-608-branch/LayoutTests/ChangeLog (250133 => 250134)
--- branches/safari-608-branch/LayoutTests/ChangeLog 2019-09-20 15:53:24 UTC (rev 250133)
+++ branches/safari-608-branch/LayoutTests/ChangeLog 2019-09-20 17:21:32 UTC (rev 250134)
@@ -1,3 +1,7 @@
+2019-09-20 Alan Coon <[email protected]>
+
+ Revert r247573. rdar://problem/55461395
+
2019-09-17 Alan Coon <[email protected]>
Cherry-pick r249954. rdar://problem/55461404
Deleted: branches/safari-608-branch/LayoutTests/pointerevents/ios/pointer-event-button-and-buttons-expected.txt (250133 => 250134)
--- branches/safari-608-branch/LayoutTests/pointerevents/ios/pointer-event-button-and-buttons-expected.txt 2019-09-20 15:53:24 UTC (rev 250133)
+++ branches/safari-608-branch/LayoutTests/pointerevents/ios/pointer-event-button-and-buttons-expected.txt 2019-09-20 17:21:32 UTC (rev 250134)
@@ -1,3 +0,0 @@
-
-PASS Testing the values of the button and buttons properties.
-
Deleted: branches/safari-608-branch/LayoutTests/pointerevents/ios/pointer-event-button-and-buttons-pointer-cancel-expected.txt (250133 => 250134)
--- branches/safari-608-branch/LayoutTests/pointerevents/ios/pointer-event-button-and-buttons-pointer-cancel-expected.txt 2019-09-20 15:53:24 UTC (rev 250133)
+++ branches/safari-608-branch/LayoutTests/pointerevents/ios/pointer-event-button-and-buttons-pointer-cancel-expected.txt 2019-09-20 17:21:32 UTC (rev 250134)
@@ -1,3 +0,0 @@
-
-PASS Testing the values of the button and buttons properties with cancelation.
-
Deleted: branches/safari-608-branch/LayoutTests/pointerevents/ios/pointer-event-button-and-buttons-pointer-cancel.html (250133 => 250134)
--- branches/safari-608-branch/LayoutTests/pointerevents/ios/pointer-event-button-and-buttons-pointer-cancel.html 2019-09-20 15:53:24 UTC (rev 250133)
+++ branches/safari-608-branch/LayoutTests/pointerevents/ios/pointer-event-button-and-buttons-pointer-cancel.html 2019-09-20 17:21:32 UTC (rev 250134)
@@ -1,38 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-<meta charset=utf-8>
-<meta name="viewport" content="width=device-width, initial-scale=1">
-</head>
-<body>
-<script src=""
-<script src=""
-<script src=""
-<script>
-
-'use strict';
-
-target_test({ width: "200px", height: "200px" }, (target, test) => {
- const eventTracker = new EventTracker(target, ["pointerdown", "pointerenter", "pointerleave", "pointercancel", "pointerout", "pointerover", "pointerup"]);
-
- const _one_ = ui.finger();
- ui.sequence([
- one.begin({ x: 10, y: 10 }),
- one.move({ x: 100, y: 100 }),
- one.end()
- ]).then(() => {
- eventTracker.assertMatchesEvents([
- { type: "pointerover", button: 0, buttons: 1 },
- { type: "pointerenter", button: 0, buttons: 1 },
- { type: "pointerdown", button: 0, buttons: 1 },
- { type: "pointercancel", button: 0, buttons: 0 },
- { type: "pointerout", button: 0, buttons: 0 },
- { type: "pointerleave", button: 0, buttons: 0 },
- ]);
- test.done();
- });
-}, `Testing the values of the button and buttons properties with cancelation.`);
-
-</script>
-</body>
-</html>
\ No newline at end of file
Deleted: branches/safari-608-branch/LayoutTests/pointerevents/ios/pointer-event-button-and-buttons.html (250133 => 250134)
--- branches/safari-608-branch/LayoutTests/pointerevents/ios/pointer-event-button-and-buttons.html 2019-09-20 15:53:24 UTC (rev 250133)
+++ branches/safari-608-branch/LayoutTests/pointerevents/ios/pointer-event-button-and-buttons.html 2019-09-20 17:21:32 UTC (rev 250134)
@@ -1,40 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-<meta charset=utf-8>
-<meta name="viewport" content="width=device-width, initial-scale=1">
-</head>
-<body>
-<script src=""
-<script src=""
-<script src=""
-<script>
-
-'use strict';
-
-target_test({ width: "200px", height: "200px" }, (target, test) => {
- const eventTracker = new EventTracker(target, ["pointerdown", "pointerenter", "pointerleave", "pointermove", "pointerout", "pointerover", "pointerup"]);
- target.style.touchAction = "none";
-
- const _one_ = ui.finger();
- ui.sequence([
- one.begin({ x: 10, y: 10 }),
- one.move({ x: 100, y: 100 }),
- one.end()
- ]).then(() => {
- eventTracker.assertMatchesEvents([
- { type: "pointerover", button: 0, buttons: 1 },
- { type: "pointerenter", button: 0, buttons: 1 },
- { type: "pointerdown", button: 0, buttons: 1 },
- { type: "pointermove", button: -1, buttons: 1 },
- { type: "pointerup", button: 0, buttons: 0 },
- { type: "pointerout", button: 0, buttons: 0 },
- { type: "pointerleave", button: 0, buttons: 0 },
- ]);
- test.done();
- });
-}, `Testing the values of the button and buttons properties.`);
-
-</script>
-</body>
-</html>
\ No newline at end of file
Modified: branches/safari-608-branch/Source/WebCore/ChangeLog (250133 => 250134)
--- branches/safari-608-branch/Source/WebCore/ChangeLog 2019-09-20 15:53:24 UTC (rev 250133)
+++ branches/safari-608-branch/Source/WebCore/ChangeLog 2019-09-20 17:21:32 UTC (rev 250134)
@@ -1,3 +1,7 @@
+2019-09-20 Alan Coon <[email protected]>
+
+ Revert r247573. rdar://problem/55461395
+
2019-09-17 Alan Coon <[email protected]>
Cherry-pick r249954. rdar://problem/55461404
Modified: branches/safari-608-branch/Source/WebCore/dom/ios/PointerEventIOS.cpp (250133 => 250134)
--- branches/safari-608-branch/Source/WebCore/dom/ios/PointerEventIOS.cpp 2019-09-20 15:53:24 UTC (rev 250133)
+++ branches/safari-608-branch/Source/WebCore/dom/ios/PointerEventIOS.cpp 2019-09-20 17:21:32 UTC (rev 250134)
@@ -50,17 +50,6 @@
return nullAtom();
}
-static short buttonForType(const AtomString& type)
-{
- return type == eventNames().pointermoveEvent ? -1 : 0;
-}
-
-static unsigned short buttonsForType(const AtomString& type)
-{
- // We have contact with the touch surface for most events except when we've released the touch or canceled it.
- return (type == eventNames().pointerupEvent || type == eventNames().pointeroutEvent || type == eventNames().pointerleaveEvent || type == eventNames().pointercancelEvent) ? 0 : 1;
-}
-
Ref<PointerEvent> PointerEvent::create(const PlatformTouchEvent& event, unsigned index, bool isPrimary, Ref<WindowProxy>&& view)
{
const auto& type = pointerEventType(event.touchPhaseAtIndex(index));
@@ -73,7 +62,7 @@
}
PointerEvent::PointerEvent(const AtomString& type, const PlatformTouchEvent& event, IsCancelable isCancelable, unsigned index, bool isPrimary, Ref<WindowProxy>&& view)
- : MouseEvent(type, typeCanBubble(type), isCancelable, typeIsComposed(type), event.timestamp().approximateMonotonicTime(), WTFMove(view), 0, event.touchLocationAtIndex(index), event.touchLocationAtIndex(index), { }, event.modifiers(), buttonForType(type), buttonsForType(type), nullptr, 0, 0, nullptr, IsSimulated::No, IsTrusted::Yes)
+ : MouseEvent(type, typeCanBubble(type), isCancelable, typeIsComposed(type), event.timestamp().approximateMonotonicTime(), WTFMove(view), 0, event.touchLocationAtIndex(index), event.touchLocationAtIndex(index), { }, event.modifiers(), 0, 0, nullptr, 0, 0, nullptr, IsSimulated::No, IsTrusted::Yes)
, m_pointerId(event.touchIdentifierAtIndex(index))
, m_width(2 * event.radiusXAtIndex(index))
, m_height(2 * event.radiusYAtIndex(index))