Implement ranges.expandBackwardToVisiblePosition() and
ranges.expandToVisibleText() for delete handling