[webkit-changes] [WebKit/WebKit] 90022b: View stability should be updated for Overlay Regions

Etienne Segonzac noreply at github.com
Thu Aug 1 00:47:30 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 90022b521582044d73a2d72d0606deb092108d39
      https://github.com/WebKit/WebKit/commit/90022b521582044d73a2d72d0606deb092108d39
  Author: Etienne Segonzac <sgz at apple.com>
  Date:   2024-08-01 (Thu, 01 Aug 2024)

  Changed paths:
    M Source/WebKit/UIProcess/API/Cocoa/WKWebViewInternal.h
    M Source/WebKit/UIProcess/API/ios/WKWebViewIOS.mm

  Log Message:
  -----------
  View stability should be updated for Overlay Regions
https://bugs.webkit.org/show_bug.cgi?id=277415
<rdar://125444317>

Reviewed by Wenson Hsieh and Simon Fraser.

Scroll updates with the overlay scroll device category should be treated
as animations when it comes to view stability.

* Source/WebKit/UIProcess/API/Cocoa/WKWebViewInternal.h:
Introduce a new boolean for scrolling with overlay regions.
* Source/WebKit/UIProcess/API/ios/WKWebViewIOS.mm:
(-[WKWebView _didFinishScrolling:]):
(-[WKWebView scrollView:handleScrollUpdate:completion:]):
Update the new state based on the scroll device category.
(-[WKWebView _viewStabilityState:]):
Flag the view stability state as animating when using overlay regions.

Canonical link: https://commits.webkit.org/281692@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