More refactoring of text selection rects and link detection