A debug assertion will fire if Range::borderAndTextRects is asked to evaluate a set of selected elements, where one of the elements does not have a parent. We should consider a nullptr parent as satisfying the condition of a parent not being present in the selection set.
<rdar://problem/38466976>
Created attachment 335983 [details] Patch
Comment on attachment 335983 [details] Patch Clearing flags on attachment: 335983 Committed r229695: <https://trac.webkit.org/changeset/229695>
All reviewed patches have been landed. Closing bug.
The problem isn’t the assertion. The problem is that in production builds if we pass in null, contains might return true! That’s what the assertion is communicating.