[webkit-changes] [WebKit/WebKit] 970107: [iOS] Stop using UIKit IPI: `-[UIDragInteraction _...

Wenson Hsieh noreply at github.com
Tue Oct 3 18:23:02 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 970107cc99491bb24ef0a0373d41f94b22ab9730
      https://github.com/WebKit/WebKit/commit/970107cc99491bb24ef0a0373d41f94b22ab9730
  Author: Wenson Hsieh <wenson_hsieh at apple.com>
  Date:   2023-10-03 (Tue, 03 Oct 2023)

  Changed paths:
    M Source/WebKit/Platform/spi/ios/UIKitSPI.h
    M Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm

  Log Message:
  -----------
  [iOS] Stop using UIKit IPI: `-[UIDragInteraction _initiationDriver]`
https://bugs.webkit.org/show_bug.cgi?id=262568
rdar://116421994

Reviewed by Aditya Keerthi and Abrar Rahman Protyasha.

Eliminate the only usage of this internal method on `UIDragInteraction`; instead, check if a
given gesture recognizer is the drag initiation driver by checking whether gesture delegate's
delegate.

* Source/WebKit/Platform/spi/ios/UIKitSPI.h:
* Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm:
(-[WKContentView _isDragInitiationGestureRecognizer:]):
(-[WKContentView deferringGestureRecognizer:shouldDeferOtherGestureRecognizer:]):

Canonical link: https://commits.webkit.org/268817@main




More information about the webkit-changes mailing list