Skip to content

[macOS] Interaction region debug overlay is incorrect for elements with non-uniform border radii #47088

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 24, 2025

Conversation

lilyspiniolas
Copy link
Contributor

@lilyspiniolas lilyspiniolas commented Jun 23, 2025

9811652

[macOS] Interaction region debug overlay is incorrect for elements with non-uniform border radii
https://bugs.webkit.org/show_bug.cgi?id=294869
rdar://154136045

Reviewed by Abrar Rahman Protyasha, Tim Horton, and Wenson Hsieh.

If the interaction region already has a calculated clip path (true for elements
with non-uniform border radii), then use it instead of calculating an incorrect one.
The path is transformed if needed to match the interaction region's onscreen position.

* Source/WebCore/page/DebugPageOverlays.cpp:
(WebCore::InteractionRegionOverlay::drawRect):

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

5bd490b

Misc iOS, visionOS, tvOS & watchOS macOS Linux Windows
✅ 🧪 style ✅ 🛠 ios ✅ 🛠 mac ✅ 🛠 wpe ✅ 🛠 win
✅ 🧪 bindings ✅ 🛠 ios-sim ✅ 🛠 mac-AS-debug ✅ 🧪 wpe-wk2 ⏳ 🧪 win-tests
✅ 🧪 webkitperl ✅ 🧪 ios-wk2 ✅ 🧪 api-mac ❌ 🧪 api-wpe
✅ 🧪 ios-wk2-wpt ✅ 🧪 mac-wk1 ✅ 🛠 wpe-cairo
❌ 🧪 api-ios ✅ 🧪 mac-wk2 ✅ 🛠 gtk
✅ 🛠 vision ✅ 🧪 mac-AS-debug-wk2 ✅ 🧪 gtk-wk2
✅ 🛠 vision-sim ✅ 🧪 mac-wk2-stress ✅ 🧪 api-gtk
✅ 🧪 vision-wk2 ✅ 🧪 mac-intel-wk2 ✅ 🛠 playstation
✅ 🛠 🧪 unsafe-merge ✅ 🛠 tv ✅ 🛠 mac-safer-cpp
✅ 🛠 tv-sim
✅ 🛠 watch
✅ 🛠 watch-sim

@lilyspiniolas lilyspiniolas requested a review from cdumez as a code owner June 23, 2025 23:27
@lilyspiniolas lilyspiniolas self-assigned this Jun 23, 2025
@lilyspiniolas lilyspiniolas added the New Bugs Unclassified bugs are placed in this component until the correct component can be determined. label Jun 23, 2025
Copy link
Contributor

@hortont424 hortont424 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for fixing it! Sorry for sending you down a rabbit hole.

@lilyspiniolas
Copy link
Contributor Author

Thank you for fixing it! Sorry for sending you down a rabbit hole.

no worries! 😄

@lilyspiniolas lilyspiniolas added the unsafe-merge-queue Applied to send a pull request to merge-queue, but skip building and testing label Jun 24, 2025
…th non-uniform border radii

https://bugs.webkit.org/show_bug.cgi?id=294869
rdar://154136045

Reviewed by Abrar Rahman Protyasha, Tim Horton, and Wenson Hsieh.

If the interaction region already has a calculated clip path (true for elements
with non-uniform border radii), then use it instead of calculating an incorrect one.
The path is transformed if needed to match the interaction region's onscreen position.

* Source/WebCore/page/DebugPageOverlays.cpp:
(WebCore::InteractionRegionOverlay::drawRect):

Canonical link: https://commits.webkit.org/296545@main
@webkit-commit-queue
Copy link
Collaborator

Committed 296545@main (9811652): https://commits.webkit.org/296545@main

Reviewed commits have been landed. Closing PR #47088 and removing active labels.

@webkit-commit-queue webkit-commit-queue merged commit 9811652 into WebKit:main Jun 24, 2025
@webkit-commit-queue webkit-commit-queue removed the unsafe-merge-queue Applied to send a pull request to merge-queue, but skip building and testing label Jun 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
New Bugs Unclassified bugs are placed in this component until the correct component can be determined.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants