resetTextInputState does two things that seemed closely related at the time of adding the method, but I no longer think that they should always be happening at the same time. This patch splits the functionality into separate functions, to separate refactoring from behavior changes.
Created attachment 201860 [details] proposed patch
Committed <http://trac.webkit.org/r150132>.