Currently, we are doing !startOfLastParagraph.deepEquivalent().anchorNode()->isConnected() but it could be replaced with startOfLastParagraph.isOrphan() which is the same as startOfLastParagraph.deepEquivalent().isOrphan() and so the same as startOfLastParagraph.deepEquivalent().anchorNode() && !startOfLastParagraph.deepEquivalent().anchorNode()->isConnected()
Created attachment 447798 [details] Patch
Committed r287428 (245563@main): <https://commits.webkit.org/245563@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 447798 [details].
<rdar://problem/86894407>