[webkit-changes] [WebKit/WebKit] 0cc94e: Overlay Regions should support Event Regions with ...

Etienne Segonzac noreply at github.com
Tue Jan 21 14:37:45 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 0cc94ed978bc5d6b87529ba053504cfc97124d92
      https://github.com/WebKit/WebKit/commit/0cc94ed978bc5d6b87529ba053504cfc97124d92
  Author: Etienne Segonzac <sgz at apple.com>
  Date:   2025-01-21 (Tue, 21 Jan 2025)

  Changed paths:
    A LayoutTests/overlay-region/multi-rects-fixed-node-expected.txt
    A LayoutTests/overlay-region/multi-rects-fixed-node.html
    M Source/WebKit/UIProcess/API/ios/WKWebViewIOS.mm

  Log Message:
  -----------
  Overlay Regions should support Event Regions with multiple rects
https://bugs.webkit.org/show_bug.cgi?id=286299
<rdar://141300961>

Reviewed by Wenson Hsieh.

Use `Region#rects()` instead of looking at the bounds when building
the Overlay Regions lists.

* Source/WebKit/UIProcess/API/ios/WKWebViewIOS.mm:
(configureScrollViewWithOverlayRegionsIDs):
Iterate over each of the EventRegion's Region rects.

* LayoutTests/overlay-region/multi-rects-fixed-node-expected.txt: Added.
* LayoutTests/overlay-region/multi-rects-fixed-node.html: Added.
Add a new test for this case.

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