Diff
Modified: trunk/Source/WebCore/ChangeLog (253247 => 253248)
--- trunk/Source/WebCore/ChangeLog 2019-12-07 10:00:13 UTC (rev 253247)
+++ trunk/Source/WebCore/ChangeLog 2019-12-07 11:22:08 UTC (rev 253248)
@@ -1,3 +1,58 @@
+2019-12-07 Tim Horton <[email protected]>
+
+ macCatalyst: REGRESSION (r251320): WebKit-native media controls do not respond to hover or click
+ https://bugs.webkit.org/show_bug.cgi?id=204543
+ <rdar://problem/57208621>
+
+ Reviewed by Antoine Quint.
+
+ Adopt pointer events for media controls, in order to make them input-device agnostic.
+
+ * Modules/modern-media-controls/controls/auto-hide-controller.js:
+ (AutoHideController):
+ (AutoHideController.prototype.set fadesWhileIdle):
+ (AutoHideController.prototype.handleEvent):
+ (AutoHideController.prototype._autoHideTimerFired):
+ Instead of tracking state in a single bit (_disableAutoHiding), keep track
+ of sets of pointers that are active, for hover and for actual touch/click.
+
+ * Modules/modern-media-controls/controls/slider.js:
+ (Slider.prototype.handleEvent):
+ (Slider.prototype._handlePointerdownEvent):
+ (Slider.prototype._handlePointerupEvent):
+ (Slider.prototype._handleMousedownEvent): Deleted.
+ (Slider.prototype._handleTouchstartEvent): Deleted.
+ (Slider.prototype._handleMouseupEvent): Deleted.
+ (Slider.prototype._handleTouchendEvent): Deleted.
+ Adopt pointer events.
+
+ * Modules/modern-media-controls/gesture-recognizers/gesture-recognizer.js:
+ (GestureRecognizer):
+ (GestureRecognizer.prototype.get numberOfTouches):
+ (GestureRecognizer.prototype.locationInElement):
+ (GestureRecognizer.prototype.locationInClient):
+ (GestureRecognizer.prototype.touchesBegan):
+ (GestureRecognizer.prototype.handleEvent):
+ (GestureRecognizer.prototype._updateBaseListeners):
+ (GestureRecognizer.prototype._removeTrackingListeners):
+ (GestureRecognizer.prototype._updateTargetTouches):
+ (GestureRecognizer.prototype.locationOfTouchInElement): Deleted.
+ Instead of keeping track of Touches, keep track of the currently-active set of PointerEvents.
+ We just store events by pointerId, and update them when they change, so we can
+ later retrieve e.g. points.
+ Remove locationOfTouchInElement which seems to not be used.
+
+ * html/RangeInputType.cpp:
+ * html/RangeInputType.h:
+ * html/shadow/SliderThumbElement.cpp:
+ (WebCore::SliderThumbElement::dragFrom):
+ (WebCore::SliderThumbElement::defaultEventHandler):
+ * html/shadow/SliderThumbElement.h:
+ Allow range inputs to accept mouse events everywhere.
+
+ * WebCore.xcodeproj/project.pbxproj:
+ Add some missing files to the project.
+
2019-12-07 Devin Rousso <[email protected]>
Web Inspector: non-regex Local Overrides and Script Blackboxing shouldn't apply to scripts that just contain the URL
Modified: trunk/Source/WebCore/Modules/modern-media-controls/controls/auto-hide-controller.js (253247 => 253248)
--- trunk/Source/WebCore/Modules/modern-media-controls/controls/auto-hide-controller.js 2019-12-07 10:00:13 UTC (rev 253247)
+++ trunk/Source/WebCore/Modules/modern-media-controls/controls/auto-hide-controller.js 2019-12-07 11:22:08 UTC (rev 253248)
@@ -32,10 +32,11 @@
{
this._mediaControls = mediaControls;
- if (GestureRecognizer.SupportsTouches) {
- this._touchIdentifiersPreventingAutoHide = new Set;
+ this._pointerIdentifiersPreventingAutoHide = new Set;
+ this._pointerIdentifiersPreventingAutoHideForHover = new Set;
+
+ if (GestureRecognizer.SupportsTouches)
this._tapGestureRecognizer = new TapGestureRecognizer(this._mediaControls.element, this);
- }
this.autoHideDelay = AutoHideDelayMS;
}
@@ -54,23 +55,18 @@
this._fadesWhileIdle = flag;
- if (GestureRecognizer.SupportsTouches) {
- if (flag) {
- this._mediaControls.element.addEventListener("touchstart", this);
- this._mediaControls.element.addEventListener("touchend", this);
- } else {
- this._mediaControls.element.removeEventListener("touchstart", this);
- this._mediaControls.element.removeEventListener("touchend", this);
- }
- this._tapGestureRecognizer.enabled = flag;
+ if (flag) {
+ this._mediaControls.element.addEventListener("pointermove", this);
+ this._mediaControls.element.addEventListener("pointerdown", this);
+ this._mediaControls.element.addEventListener("pointerup", this);
+ this._mediaControls.element.addEventListener("pointerleave", this);
+ this._mediaControls.element.addEventListener("pointerout", this);
} else {
- if (flag) {
- this._mediaControls.element.addEventListener("mousemove", this);
- this._mediaControls.element.addEventListener("mouseleave", this);
- } else {
- this._mediaControls.element.removeEventListener("mousemove", this);
- this._mediaControls.element.removeEventListener("mouseleave", this);
- }
+ this._mediaControls.element.removeEventListener("pointermove", this);
+ this._mediaControls.element.removeEventListener("pointerdown", this);
+ this._mediaControls.element.removeEventListener("pointerup", this);
+ this._mediaControls.element.removeEventListener("pointerleave", this);
+ this._mediaControls.element.removeEventListener("pointerout", this);
}
if (flag && !this._mediaControls.faded)
@@ -86,35 +82,38 @@
if (event.currentTarget !== this._mediaControls.element)
return;
- if (event.type === "mousemove") {
+ if (event.type === "pointermove") {
this._mediaControls.faded = false;
this._resetAutoHideTimer(true);
if (this._mediaControls.isPointInControls(new DOMPoint(event.clientX, event.clientY))) {
- this._disableAutoHiding = true;
+ this._pointerIdentifiersPreventingAutoHideForHover.add(event.pointerId);
this._cancelNonEnforcedAutoHideTimer();
} else {
- delete this._disableAutoHiding;
+ this._pointerIdentifiersPreventingAutoHideForHover.delete(event.pointerId);
this._resetAutoHideTimer(true);
}
- } else if (event.type === "mouseleave" && this._fadesWhileIdle && !this.hasSecondaryUIAttached && !this._enforceAutoHideTimer)
- this._mediaControls.faded = !this._mediaControls.isPointInControls(new DOMPoint(event.clientX, event.clientY));
+ } else if (event.type === "pointerleave" && this._fadesWhileIdle && !this.hasSecondaryUIAttached && !this._enforceAutoHideTimer) {
+ this._pointerIdentifiersPreventingAutoHide.delete(event.pointerId);
+ this._pointerIdentifiersPreventingAutoHideForHover.delete(event.pointerId);
- if (event.type === "touchstart") {
+ // If the pointer is a mouse (supports hover), see if we can
+ // immediately hide without waiting for the auto-hide timer.
+ if (event.pointerType == "mouse")
+ this._autoHideTimerFired();
+
+ this._resetAutoHideTimer(true);
+ }
+
+ if (event.type === "pointerdown") {
// Remember the current faded state so that we can determine,
// if we recognize a tap, if it should fade the controls out.
this._nextTapCanFadeControls = !this._mediaControls.faded;
- for (var touch in event.changedTouches)
- this._touchIdentifiersPreventingAutoHide.add(touch.identifier);
+ this._pointerIdentifiersPreventingAutoHide.add(event.pointerId);
this._mediaControls.faded = false;
- this._disableAutoHiding = true;
this._cancelNonEnforcedAutoHideTimer();
- } else if (event.type === "touchend") {
- for (var touch in event.changedTouches)
- this._touchIdentifiersPreventingAutoHide.delete(touch.identifier);
- if (!this._touchIdentifiersPreventingAutoHide.size) {
- delete this._disableAutoHiding;
- this._resetAutoHideTimer(true);
- }
+ } else if (event.type === "pointerup") {
+ this._pointerIdentifiersPreventingAutoHide.delete(event.pointerId);
+ this._resetAutoHideTimer(true);
}
}
@@ -171,8 +170,10 @@
_autoHideTimerFired()
{
+ const disableAutoHiding = this._pointerIdentifiersPreventingAutoHide.size || this._pointerIdentifiersPreventingAutoHideForHover.size;
+
delete this._enforceAutoHideTimer;
- if (this._disableAutoHiding)
+ if (disableAutoHiding)
return;
this._cancelAutoHideTimer();
Modified: trunk/Source/WebCore/Modules/modern-media-controls/controls/slider.js (253247 => 253248)
--- trunk/Source/WebCore/Modules/modern-media-controls/controls/slider.js 2019-12-07 10:00:13 UTC (rev 253247)
+++ trunk/Source/WebCore/Modules/modern-media-controls/controls/slider.js 2019-12-07 11:22:08 UTC (rev 253248)
@@ -38,7 +38,7 @@
this._container.children = [this._track, this._primaryFill, this._secondaryFill, this._knob];
this._input = new LayoutNode(`<input type="range" min="0" max="1" step="0.001" />`);
- this._input.element.addEventListener(GestureRecognizer.SupportsTouches ? "touchstart" : "mousedown", this);
+ this._input.element.addEventListener("pointerdown", this);
this._input.element.addEventListener("input", this);
this._input.element.addEventListener("change", this);
@@ -109,18 +109,12 @@
handleEvent(event)
{
switch (event.type) {
- case "mousedown":
- this._handleMousedownEvent();
+ case "pointerdown":
+ this._handlePointerdownEvent();
break;
- case "touchstart":
- this._handleTouchstartEvent(event);
+ case "pointerup":
+ this._handlePointerupEvent();
break;
- case "mouseup":
- this._handleMouseupEvent();
- break;
- case "touchend":
- this._handleTouchendEvent(event);
- break;
case "change":
case "input":
this._valueDidChange();
@@ -158,10 +152,10 @@
// Private
- _handleMousedownEvent()
+ _handlePointerdownEvent()
{
- this._mouseupTarget = this._interactionEndTarget();
- this._mouseupTarget.addEventListener("mouseup", this, true);
+ this._pointerupTarget = this._interactionEndTarget();
+ this._pointerupTarget.addEventListener("pointerup", this, true);
this._valueWillStartChanging();
}
@@ -172,20 +166,6 @@
return (!mediaControls || mediaControls instanceof MacOSInlineMediaControls) ? window : mediaControls.element;
}
- _handleTouchstartEvent(event)
- {
- // We're only interested in the very first touch on the <input>.
- if (event.touches.length !== 1)
- return;
-
- this._initialTouchIdentifier = event.touches[0].identifier;
-
- this._touchendTarget = this._interactionEndTarget();
- this._touchendTarget.addEventListener("touchend", this, true);
-
- this._valueWillStartChanging();
- }
-
_valueWillStartChanging()
{
// We should no longer cache the value since we'll be interacting with the <input>
@@ -215,24 +195,11 @@
this.needsLayout = true;
}
- _handleMouseupEvent()
+ _handlePointerupEvent()
{
- this._mouseupTarget.removeEventListener("mouseup", this, true);
- delete this._mouseupTarget;
+ this._pointerupTarget.removeEventListener("pointerup", this, true);
+ delete this._pointerupTarget;
this._valueDidStopChanging();
}
-
- _handleTouchendEvent(event)
- {
- if (!Array.from(event.changedTouches).find(touch => touch.identifier === this._initialTouchIdentifier))
- return;
-
- this._touchendTarget.removeEventListener("touchend", this, true);
- delete this._touchendTarget;
- delete this._initialTouchIdentifier;
-
- this._valueDidStopChanging();
- }
-
}
Modified: trunk/Source/WebCore/Modules/modern-media-controls/gesture-recognizers/gesture-recognizer.js (253247 => 253248)
--- trunk/Source/WebCore/Modules/modern-media-controls/gesture-recognizers/gesture-recognizer.js 2019-12-07 10:00:13 UTC (rev 253247)
+++ trunk/Source/WebCore/Modules/modern-media-controls/gesture-recognizers/gesture-recognizer.js 2019-12-07 11:22:08 UTC (rev 253248)
@@ -1,10 +1,9 @@
-
class GestureRecognizer
{
constructor(target = null, delegate = null)
{
- this._targetTouches = [];
+ this._targetPointers = new Map;
this.modifierKeys = {
alt : false,
@@ -53,7 +52,7 @@
get numberOfTouches()
{
- return this._targetTouches.length;
+ return this._targetPointers.size;
}
get enabled()
@@ -87,13 +86,13 @@
locationInElement(element)
{
const p = new DOMPoint;
- const touches = this._targetTouches;
- const count = touches.length;
- for (let i = 0; i < count; ++i) {
- const touch = touches[i];
- p.x += touch.pageX;
- p.y += touch.pageY;
- }
+ const count = this._targetPointers.size;
+ if (!count)
+ return p;
+ this._targetPointers.forEach(function (pointer) {
+ p.x += pointer.pageX;
+ p.y += pointer.pageY;
+ });
p.x /= count;
p.y /= count;
@@ -108,13 +107,13 @@
locationInClient()
{
const p = new DOMPoint;
- const touches = this._targetTouches;
- const count = touches.length;
- for (let i = 0; i < count; ++i) {
- const touch = touches[i];
- p.x += touch.clientX;
- p.y += touch.clientY;
- }
+ const count = this._targetPointers.size;
+ if (!count)
+ return p;
+ this._targetPointers.forEach(function (pointer) {
+ p.x += pointer.clientX;
+ p.y += pointer.clientY;
+ });
p.x /= count;
p.y /= count;
@@ -121,29 +120,14 @@
return p;
}
- locationOfTouchInElement(touchIndex, element)
- {
- const touch = this._targetTouches[touchIndex];
- if (!touch)
- return new DOMPoint;
-
- const touchLocation = new DOMPoint(touch.pageX, touch.pageY);
- if (!element)
- return touchLocation;
-
- // FIXME: are WebKitPoint and DOMPoint interchangeable?
- const wkPoint = window.webkitConvertPointFromPageToNode(element, new WebKitPoint(touchLocation.x, touchLocation.y));
- return new DOMPoint(wkPoint.x, wkPoint.y);
- }
-
touchesBegan(event)
{
if (event.currentTarget !== this._target)
return;
- window.addEventListener(GestureRecognizer.Events.TouchMove, this, true);
- window.addEventListener(GestureRecognizer.Events.TouchEnd, this, true);
- window.addEventListener(GestureRecognizer.Events.TouchCancel, this, true);
+ window.addEventListener(GestureRecognizer.Events.PointerMove, this, true);
+ window.addEventListener(GestureRecognizer.Events.PointerUp, this, true);
+ window.addEventListener(GestureRecognizer.Events.PointerCancel, this, true);
this.enterPossibleState();
}
@@ -235,16 +219,16 @@
this._updateKeyboardModifiers(event);
switch (event.type) {
- case GestureRecognizer.Events.TouchStart:
+ case GestureRecognizer.Events.PointerDown:
this.touchesBegan(event);
break;
- case GestureRecognizer.Events.TouchMove:
+ case GestureRecognizer.Events.PointerMove:
this.touchesMoved(event);
break;
- case GestureRecognizer.Events.TouchEnd:
+ case GestureRecognizer.Events.PointerUp:
this.touchesEnded(event);
break;
- case GestureRecognizer.Events.TouchCancel:
+ case GestureRecognizer.Events.PointerCancel:
this.touchesCancelled(event);
break;
case GestureRecognizer.Events.GestureStart:
@@ -275,11 +259,11 @@
return;
if (this._enabled) {
- this._target.addEventListener(GestureRecognizer.Events.TouchStart, this);
+ this._target.addEventListener(GestureRecognizer.Events.PointerDown, this);
if (GestureRecognizer.SupportsGestures)
this._target.addEventListener(GestureRecognizer.Events.GestureStart, this);
} else {
- this._target.removeEventListener(GestureRecognizer.Events.TouchStart, this);
+ this._target.removeEventListener(GestureRecognizer.Events.PointerDown, this);
if (GestureRecognizer.SupportsGestures)
this._target.removeEventListener(GestureRecognizer.Events.GestureStart, this);
}
@@ -287,62 +271,31 @@
_removeTrackingListeners()
{
- window.removeEventListener(GestureRecognizer.Events.TouchMove, this, true);
- window.removeEventListener(GestureRecognizer.Events.TouchEnd, this, true);
+ window.removeEventListener(GestureRecognizer.Events.PointerMove, this, true);
+ window.removeEventListener(GestureRecognizer.Events.PointerUp, this, true);
+ window.removeEventListener(GestureRecognizer.Events.PointerCancel, this, true);
this._target.removeEventListener(GestureRecognizer.Events.GestureChange, this, true);
this._target.removeEventListener(GestureRecognizer.Events.GestureEnd, this, true);
+
+ this._targetPointers = new Map;
}
_updateTargetTouches(event)
{
- if (!GestureRecognizer.SupportsTouches) {
- if (event.type === GestureRecognizer.Events.TouchEnd)
- this._targetTouches = [];
- else
- this._targetTouches = [event];
+ if (!(event instanceof PointerEvent))
return;
- }
- if (!(event instanceof TouchEvent))
+ if (event.type === GestureRecognizer.Events.PointerDown) {
+ this._targetPointers.set(event.pointerId, event);
return;
-
- // With a touchstart event, event.targetTouches is accurate so
- // we simply add all of those.
- if (event.type === GestureRecognizer.Events.TouchStart) {
- this._targetTouches = [];
- let touches = event.targetTouches;
- for (let i = 0, count = touches.length; i < count; ++i)
- this._targetTouches.push(touches[i]);
- return;
}
- // With a touchmove event, the target is window so event.targetTouches is
- // inaccurate so we add all touches that we knew about previously.
- if (event.type === GestureRecognizer.Events.TouchMove) {
- let targetIdentifiers = this._targetTouches.map(function(touch) {
- return touch.identifier;
- });
-
- this._targetTouches = [];
- let touches = event.touches;
- for (let i = 0, count = touches.length; i < count; ++i) {
- let touch = touches[i];
- if (targetIdentifiers.indexOf(touch.identifier) !== -1)
- this._targetTouches.push(touch);
- }
+ if (event.type === GestureRecognizer.Events.PointerMove) {
+ this._targetPointers.set(event.pointerId, event);
return;
}
- // With a touchend or touchcancel event, we only keep the existing touches
- // that are also found in event.touches.
- let allTouches = event.touches;
- let existingIdentifiers = [];
- for (let i = 0, count = allTouches.length; i < count; ++i)
- existingIdentifiers.push(allTouches[i].identifier);
-
- this._targetTouches = this._targetTouches.filter(function(touch) {
- return existingIdentifiers.indexOf(touch.identifier) !== -1;
- });
+ this._targetPointers.delete(event.pointerId);
}
_updateKeyboardModifiers(event)
@@ -369,10 +322,10 @@
};
GestureRecognizer.Events = {
- TouchStart : GestureRecognizer.SupportsTouches ? "touchstart" : "mousedown",
- TouchMove : GestureRecognizer.SupportsTouches ? "touchmove" : "mousemove",
- TouchEnd : GestureRecognizer.SupportsTouches ? "touchend" : "mouseup",
- TouchCancel : "touchcancel",
+ PointerDown : "pointerdown",
+ PointerMove : "pointermove",
+ PointerUp : "pointerup",
+ PointerCancel : "pointercancel",
GestureStart : "gesturestart",
GestureChange : "gesturechange",
GestureEnd : "gestureend"
Modified: trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj (253247 => 253248)
--- trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj 2019-12-07 10:00:13 UTC (rev 253247)
+++ trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj 2019-12-07 11:22:08 UTC (rev 253248)
@@ -742,6 +742,7 @@
2D50A4B71CE10E0000198049 /* AttachmentPlaceholder.png in Resources */ = {isa = PBXBuildFile; fileRef = 2D50A4B51CE10E0000198049 /* AttachmentPlaceholder.png */; };
2D50A4B81CE10E0000198049 /* [email protected] in Resources */ = {isa = PBXBuildFile; fileRef = 2D50A4B61CE10E0000198049 /* [email protected] */; };
2D5646B01B8F8493003C4994 /* DictionaryPopupInfo.h in Headers */ = {isa = PBXBuildFile; fileRef = 2D5646AF1B8F8493003C4994 /* DictionaryPopupInfo.h */; settings = {ATTRIBUTES = (Private, ); }; };
+ 2D56800323888604007ECB8A /* auto-hide-controller.js in Resources */ = {isa = PBXBuildFile; fileRef = 2D56800123888603007ECB8A /* auto-hide-controller.js */; };
2D5A5931152525D00036EE51 /* ImageOrientation.h in Headers */ = {isa = PBXBuildFile; fileRef = A8748D6612CC3763001FBA41 /* ImageOrientation.h */; settings = {ATTRIBUTES = (Private, ); }; };
2D5BC42716F882EE007048D0 /* SecurityPolicyViolationEvent.h in Headers */ = {isa = PBXBuildFile; fileRef = 2D5BC42516F882BE007048D0 /* SecurityPolicyViolationEvent.h */; settings = {ATTRIBUTES = (Private, ); }; };
2D5C9D0019C7B52E00B3C5C1 /* PageOverlay.h in Headers */ = {isa = PBXBuildFile; fileRef = 2D5C9CFC19C7B52E00B3C5C1 /* PageOverlay.h */; settings = {ATTRIBUTES = (Private, ); }; };
@@ -6721,6 +6722,7 @@
2D50A4B51CE10E0000198049 /* AttachmentPlaceholder.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = AttachmentPlaceholder.png; sourceTree = "<group>"; };
2D50A4B61CE10E0000198049 /* [email protected] */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "[email protected]"; sourceTree = "<group>"; };
2D5646AF1B8F8493003C4994 /* DictionaryPopupInfo.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DictionaryPopupInfo.h; sourceTree = "<group>"; };
+ 2D56800123888603007ECB8A /* auto-hide-controller.js */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode._javascript_; path = "auto-hide-controller.js"; sourceTree = "<group>"; };
2D5BC42516F882BE007048D0 /* SecurityPolicyViolationEvent.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SecurityPolicyViolationEvent.h; sourceTree = "<group>"; };
2D5BC42616F882BE007048D0 /* SecurityPolicyViolationEvent.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = SecurityPolicyViolationEvent.idl; sourceTree = "<group>"; };
2D5C9CFB19C7B52E00B3C5C1 /* PageOverlay.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = PageOverlay.cpp; sourceTree = "<group>"; };
@@ -6744,6 +6746,9 @@
2D81E1CD21A78CC200A32CF4 /* InsertEditableImageCommand.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = InsertEditableImageCommand.h; sourceTree = "<group>"; };
2D8287F416E4A0380086BD00 /* HitTestLocation.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = HitTestLocation.cpp; sourceTree = "<group>"; };
2D8287F516E4A0380086BD00 /* HitTestLocation.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = HitTestLocation.h; sourceTree = "<group>"; };
+ 2D8D3BEB23847AC900657075 /* gesture-recognizer.js */ = {isa = PBXFileReference; lastKnownFileType = sourcecode._javascript_; path = "gesture-recognizer.js"; sourceTree = "<group>"; };
+ 2D8D3BEC23847AC900657075 /* pinch.js */ = {isa = PBXFileReference; lastKnownFileType = sourcecode._javascript_; path = pinch.js; sourceTree = "<group>"; };
+ 2D8D3BED23847AC900657075 /* tap.js */ = {isa = PBXFileReference; lastKnownFileType = sourcecode._javascript_; path = tap.js; sourceTree = "<group>"; };
2D8FEBDA143E3EF70072502B /* CSSCrossfadeValue.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = CSSCrossfadeValue.cpp; sourceTree = "<group>"; };
2D8FEBDB143E3EF70072502B /* CSSCrossfadeValue.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CSSCrossfadeValue.h; sourceTree = "<group>"; };
2D9066040BE141D400956998 /* RenderLayoutState.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = RenderLayoutState.cpp; sourceTree = "<group>"; };
@@ -17769,6 +17774,16 @@
path = mac;
sourceTree = "<group>";
};
+ 2D8D3BEA23847AC800657075 /* gesture-recognizers */ = {
+ isa = PBXGroup;
+ children = (
+ 2D8D3BEB23847AC900657075 /* gesture-recognizer.js */,
+ 2D8D3BEC23847AC900657075 /* pinch.js */,
+ 2D8D3BED23847AC900657075 /* tap.js */,
+ );
+ path = "gesture-recognizers";
+ sourceTree = "<group>";
+ };
2DDE1CAB1F57475900D1A365 /* webvr */ = {
isa = PBXGroup;
children = (
@@ -20967,6 +20982,7 @@
716FA0D81DB26591007323CC /* airplay-button.css */,
716FA0D91DB26591007323CC /* airplay-button.js */,
716FA0DA1DB26591007323CC /* airplay-placard.js */,
+ 2D56800123888603007ECB8A /* auto-hide-controller.js */,
716FA0DC1DB26591007323CC /* button.css */,
716FA0DD1DB26591007323CC /* button.js */,
716FA0DE1DB26591007323CC /* buttons-container.css */,
@@ -21046,6 +21062,7 @@
isa = PBXGroup;
children = (
716FA0D71DB26591007323CC /* controls */,
+ 2D8D3BEA23847AC800657075 /* gesture-recognizers */,
71D6AA6F1DA4EAF700B23969 /* images */,
714131481DC9D6EF00336107 /* js-files */,
71D02D911DB55C4E00DD5CF5 /* media */,
@@ -33188,6 +33205,7 @@
files = (
2D50A4B71CE10E0000198049 /* AttachmentPlaceholder.png in Resources */,
2D50A4B81CE10E0000198049 /* [email protected] in Resources */,
+ 2D56800323888604007ECB8A /* auto-hide-controller.js in Resources */,
A1AA9AB91D23911500FEADB3 /* ContentFilterBlockedPage.html in Resources */,
A11E8C051B1E28F40003A7C7 /* copyCursor.png in Resources */,
2D9F0E1314FF1CBF00BA0FF7 /* linearSRGB.icc in Resources */,
Modified: trunk/Source/WebCore/html/RangeInputType.cpp (253247 => 253248)
--- trunk/Source/WebCore/html/RangeInputType.cpp 2019-12-07 10:00:13 UTC (rev 253247)
+++ trunk/Source/WebCore/html/RangeInputType.cpp 2019-12-07 11:22:08 UTC (rev 253248)
@@ -135,8 +135,6 @@
return true;
}
-#if !PLATFORM(IOS_FAMILY)
-
void RangeInputType::handleMouseDownEvent(MouseEvent& event)
{
ASSERT(element());
@@ -155,8 +153,6 @@
thumb.dragFrom(event.absoluteLocation());
}
-#endif
-
#if ENABLE(TOUCH_EVENTS)
void RangeInputType::handleTouchEvent(TouchEvent& event)
{
Modified: trunk/Source/WebCore/html/RangeInputType.h (253247 => 253248)
--- trunk/Source/WebCore/html/RangeInputType.h 2019-12-07 10:00:13 UTC (rev 253247)
+++ trunk/Source/WebCore/html/RangeInputType.h 2019-12-07 11:22:08 UTC (rev 253248)
@@ -50,9 +50,7 @@
bool supportsRequired() const final;
StepRange createStepRange(AnyStepHandling) const final;
bool isSteppable() const final;
-#if !PLATFORM(IOS_FAMILY)
void handleMouseDownEvent(MouseEvent&) final;
-#endif
ShouldCallBaseEventHandler handleKeydownEvent(KeyboardEvent&) final;
RenderPtr<RenderElement> createInputRenderer(RenderStyle&&) final;
void createShadowSubtree() final;
Modified: trunk/Source/WebCore/html/shadow/SliderThumbElement.cpp (253247 => 253248)
--- trunk/Source/WebCore/html/shadow/SliderThumbElement.cpp 2019-12-07 10:00:13 UTC (rev 253247)
+++ trunk/Source/WebCore/html/shadow/SliderThumbElement.cpp 2019-12-07 11:22:08 UTC (rev 253248)
@@ -246,9 +246,7 @@
{
Ref<SliderThumbElement> protectedThis(*this);
setPositionFromPoint(point);
-#if !PLATFORM(IOS_FAMILY)
startDragging();
-#endif
}
void SliderThumbElement::setPositionFromPoint(const LayoutPoint& absolutePoint)
@@ -338,7 +336,6 @@
renderer()->setNeedsLayout();
}
-#if !PLATFORM(IOS_FAMILY)
void SliderThumbElement::defaultEventHandler(Event& event)
{
if (!is<MouseEvent>(event)) {
@@ -376,10 +373,7 @@
HTMLDivElement::defaultEventHandler(mouseEvent);
}
-#endif
-#if !PLATFORM(IOS_FAMILY)
-
bool SliderThumbElement::willRespondToMouseMoveEvents()
{
const auto input = hostInput();
@@ -398,7 +392,6 @@
return HTMLDivElement::willRespondToMouseClickEvents();
}
-#endif // !PLATFORM(IOS_FAMILY)
void SliderThumbElement::willDetachRenderers()
{
Modified: trunk/Source/WebCore/html/shadow/SliderThumbElement.h (253247 => 253248)
--- trunk/Source/WebCore/html/shadow/SliderThumbElement.h 2019-12-07 10:00:13 UTC (rev 253247)
+++ trunk/Source/WebCore/html/shadow/SliderThumbElement.h 2019-12-07 11:22:08 UTC (rev 253248)
@@ -66,11 +66,9 @@
bool matchesReadWritePseudoClass() const final;
RefPtr<Element> focusDelegate() final;
-#if !PLATFORM(IOS_FAMILY)
void defaultEventHandler(Event&) final;
bool willRespondToMouseMoveEvents() final;
bool willRespondToMouseClickEvents() final;
-#endif
#if ENABLE(IOS_TOUCH_EVENTS)
void didAttachRenderers() final;