Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 24de8a9cc67464a430fe344c6f15cb4256dfec85
      
https://github.com/WebKit/WebKit/commit/24de8a9cc67464a430fe344c6f15cb4256dfec85
  Author: Tim Horton <[email protected]>
  Date:   2026-01-24 (Sat, 24 Jan 2026)

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

  Log Message:
  -----------
  Make it possible to create visible content rect updates out-of-band
https://bugs.webkit.org/show_bug.cgi?id=306147
rdar://168784313

Reviewed by Aditya Keerthi.

A variety of small cleanups around visible content rect update machinery both in
service of readability/maintainability and in service of possibly sending them 
out-of-band:

- Separate the actions of "creating" an update from "applying" it.
- Keep all of the logic to create an update in one place (WKWebView), instead 
of strewn between two.
    - Downstream of this: move _historicalKinematicData to WKWebView as well.
- Create the struct in one place and pass it around, instead of having an 
11-argument method.

* Source/WebKit/UIProcess/API/Cocoa/WKWebViewInternal.h:
* Source/WebKit/UIProcess/API/ios/WKWebViewIOS.h:
* Source/WebKit/UIProcess/API/ios/WKWebViewIOS.mm:
(-[WKWebView _scrollViewDidInterruptDecelerating:]):
(-[WKWebView _createVisibleContentRectUpdate]):
(-[WKWebView _updateVisibleContentRects]):
* Source/WebKit/UIProcess/ios/WKContentView.h:
* Source/WebKit/UIProcess/ios/WKContentView.mm:
(-[WKContentView didUpdateVisibleRect:sendEvenIfUnchanged:]):
(-[WKContentView 
didUpdateVisibleRect:unobscuredRect:contentInsets:unobscuredRectInScrollViewCoordinates:obscuredInsets:unobscuredSafeAreaInsets:inputViewBounds:scale:minimumScale:viewStability:enclosedInScrollableAncestorView:sendEvenIfUnchanged:]):
 Deleted.
(-[WKContentView didInterruptScrolling]): Deleted.

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to