Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: d1699c3cba2b9a8dc9685bb1c98ed75b8e2a3022
      
https://github.com/WebKit/WebKit/commit/d1699c3cba2b9a8dc9685bb1c98ed75b8e2a3022
  Author: Wenson Hsieh <[email protected]>
  Date:   2025-02-12 (Wed, 12 Feb 2025)

  Changed paths:
    M Source/WebKit/UIProcess/API/Cocoa/WKWebViewPrivate.h
    M Source/WebKit/UIProcess/API/mac/WKWebViewMac.mm

  Log Message:
  -----------
  [macOS] Add a corresponding readonly getter for obscured content insets
https://bugs.webkit.org/show_bug.cgi?id=287564

Reviewed by Richard Robinson and Aditya Keerthi.

Small followup patch to 290178@main — add a readonly getter for the obscured 
content inset,
specified by the WebKit client via `-_setObscuredContentInsets:immediate:` or
`-_setTopContentInset:immediate:`.

This allows clients of this SPI to (more conveniently) account for content 
insets when calculating
web view geometry, without having to subclass `WKWebView` and override the new 
setter,
`-_setObscuredContentInsets:immediate:`.

* Source/WebKit/UIProcess/API/Cocoa/WKWebViewPrivate.h:
* Source/WebKit/UIProcess/API/mac/WKWebViewMac.mm:
(-[WKWebView _obscuredContentInsets]):

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to