Following up from bug #178232 we should write InlineTextBox::paintCompositionUnderline() in terms of InlineTextBox::localSelectionRectWithClampedPositions().
<rdar://problem/35107859>
Created attachment 324481 [details] Patch