Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: fde1853a7a1574c5468741b2022d4d9d6ae1cf24
      
https://github.com/WebKit/WebKit/commit/fde1853a7a1574c5468741b2022d4d9d6ae1cf24
  Author: Etienne Segonzac <[email protected]>
  Date:   2023-05-26 (Fri, 26 May 2023)

  Changed paths:
    A LayoutTests/interaction-region/display-table-expected.txt
    A LayoutTests/interaction-region/display-table.html
    M LayoutTests/interaction-region/layer-tree-expected.txt
    M Source/WebCore/page/InteractionRegion.cpp

  Log Message:
  -----------
  InteractionRegions are missing for some `display: table` elements
https://bugs.webkit.org/show_bug.cgi?id=257379
<rdar://109538261>

Reviewed by Tim Horton.

Don't skip the child renderer's InteractionRegion if the link parent is
`display: table`, like we do for inline links.

* Source/WebCore/page/InteractionRegion.cpp:
(WebCore::interactionRegionForRenderedRegion):
Check if the matched renderer `isDisplayTableOrTablePart()` before
bailing out.

* LayoutTests/interaction-region/display-table-expected.txt: Added.
* LayoutTests/interaction-region/display-table.html: Added.
Add a test.

* LayoutTests/interaction-region/layer-tree-expected.txt:
Test update.

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


_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to