Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 19b49cde3364c1ea0b9e572d32164d84e700f4eb
https://github.com/WebKit/WebKit/commit/19b49cde3364c1ea0b9e572d32164d84e700f4eb
Author: Yoel Hawa <[email protected]>
Date: 2024-07-17 (Wed, 17 Jul 2024)
Changed paths:
A LayoutTests/interaction-region/loose-container-removal-expected.txt
A LayoutTests/interaction-region/loose-container-removal.html
M Source/WebCore/rendering/EventRegion.cpp
Log Message:
-----------
Interaction Regions consolidation should consider all containers without
visual borders
https://bugs.webkit.org/show_bug.cgi?id=276272
<rdar://116705567>
Reviewed by Megan Gardner and Tim Horton.
Ensure all candidates are properly considered for removal, and relax
the strictness of the containment check for consolidation.
* Source/WebCore/rendering/EventRegion.cpp:
(WebCore::EventRegionContext::uniteInteractionRegions):
Move logic here to keep track of all potential candidates for removal.
(WebCore::EventRegionContext::shouldConsolidateInteractionRegion):
Temporarily expand ancestor element's bounds by 3px on all sides before
checking for element's containment, and remove old logic to keep track
of candidates for removal.
* LayoutTests/interaction-region/loose-container-removal-expected.txt: Added.
* LayoutTests/interaction-region/loose-container-removal.html: Added.
Add new test case to cover this change.
Canonical link: https://commits.webkit.org/281044@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