Bug 308471: Implement NSTextInput -characterIndexForPoint. Credits to mstange for virtually all the work in this patch. r=masayuki
merge m-i -> ash