Consider a page with the following markup: <body contenteditable='true' style="margin: 0"><div style='width: 200px; height: 200px; background-color: blue'>Hello World</div></body> In the rect {10, 10, 20, 20} the <div> is hit and is editable, but Page::editableElementsInRect() return 0 elements because the <div> is not a root editable element: it is a child of a root editable element (<body>). For non form controls, Page::editableElementsInRect() is most meaningful if it returns the root editable element for each hit editable element.
<rdar://problem/60015801>
Created attachment 398295 [details] Patch
Comment on attachment 398295 [details] Patch Clearing flags on attachment: 398295 Committed r261054: <https://trac.webkit.org/changeset/261054>
All reviewed patches have been landed. Closing bug.