[webkit-changes] [WebKit/WebKit] e69901: InteractionRegions: elements with explicitly set `...
Etienne Segonzac
noreply at github.com
Wed Oct 25 02:26:28 PDT 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: e6990174db146db97fda96b568332c7271410a19
https://github.com/WebKit/WebKit/commit/e6990174db146db97fda96b568332c7271410a19
Author: Etienne Segonzac <sgz at apple.com>
Date: 2023-10-25 (Wed, 25 Oct 2023)
Changed paths:
M LayoutTests/interaction-region/border-radii-expected.txt
M LayoutTests/interaction-region/border-radii.html
M Source/WebCore/page/InteractionRegion.cpp
Log Message:
-----------
InteractionRegions: elements with explicitly set `border-radius` should not get the default radius
https://bugs.webkit.org/show_bug.cgi?id=263611
<rdar://116815739>
Reviewed by Tim Horton.
When an element has a border radius explicitly set, even when set to 0,
avoid adding the default radius to the corresponding InteractionRegion.
* Source/WebCore/page/InteractionRegion.cpp:
(WebCore::interactionRegionForRenderedRegion):
Check if the RenderStyle has an explicitly set border-radius.
* LayoutTests/interaction-region/border-radii-expected.txt:
* LayoutTests/interaction-region/border-radii.html:
Add test cases covering this change.
Canonical link: https://commits.webkit.org/269755@main
More information about the webkit-changes
mailing list