Created attachment 464376 [details] test case 1. Open the attached test case 2. Click inside the search field Result: The focus ring is clipped. In 257981@main, ThemeMac::drawCellOrFocusRingWithViewIntoContext() was refactored to ControlMac::drawCell(). In these two functions, the NSCell drawing will be routed to an ImageBuffer if the page is zoomed. After the drawing this ImageBuffer is drawn into the destination context. When the form control is focused, we ask AppKit to draw also a focus ring around the rectangle of form control. AppKit bleeds at maximum three pixels around the drawing rectangle. hemeMac::drawCellOrFocusRingWithViewIntoContext() handles this issue by inflating the ImageBuffer size by three pixels. This size inflation needs to be ported to ControlMac::drawCell().
<rdar://problem/103958015>
Pull request: https://github.com/WebKit/WebKit/pull/8309
Committed 258553@main (2d409b2f1e10): <https://commits.webkit.org/258553@main> Reviewed commits have been landed. Closing PR #8309 and removing active labels.