[webkit-changes] [WebKit/WebKit] 05a5d8: Adjust the size limit for Interaction Regions

Etienne Segonzac noreply at github.com
Fri Aug 25 06:24:08 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 05a5d83d68474790c80ce5546b6910162da9e323
      https://github.com/WebKit/WebKit/commit/05a5d83d68474790c80ce5546b6910162da9e323
  Author: Etienne Segonzac <sgz at apple.com>
  Date:   2023-08-25 (Fri, 25 Aug 2023)

  Changed paths:
    A LayoutTests/interaction-region/interaction-region-size-limit-expected.txt
    A LayoutTests/interaction-region/interaction-region-size-limit.html
    M Source/WebCore/page/InteractionRegion.cpp

  Log Message:
  -----------
  Adjust the size limit for Interaction Regions
https://bugs.webkit.org/show_bug.cgi?id=260659
<rdar://114216114>

Reviewed by Tim Horton.

Tweak the maximum size threshold (relative to the frame area) before we
skip Interaction Regions.

* Source/WebCore/page/InteractionRegion.cpp:
(WebCore::interactionRegionForRenderedRegion):
Make the maximum 1/3rd instead of half of the frame area.

* LayoutTests/interaction-region/interaction-region-size-limit-expected.txt: Added.
* LayoutTests/interaction-region/interaction-region-size-limit.html: Added.
Add a test with some mockup UI.

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




More information about the webkit-changes mailing list