Unduplicate the code to convert between VisiblePosition and index
Created attachment 210062 [details] Cleanup
This change was inspired by https://chromium.googlesource.com/chromium/blink/+/8ef233a60fec4c65de9e94c66a19a028377d7da0.
Comment on attachment 210062 [details] Cleanup Clearing flags on attachment: 210062 Committed r154868: <http://trac.webkit.org/changeset/154868>
All reviewed patches have been landed. Closing bug.