DescriptionAvoid underlining misspellings when typing inside a word
This CL changes TypingCommand to cancel ongoing spellcheck requests when user
types a new character.
If spellcheck is slow enough to not return after every character that user
types, then spellcheck results can arrive after a user has typed several
characters since spellcheck request. This can happen, for example, if spellcheck
service is accessed over network. If the user is typing in the middle of a word,
then the stale spellcheck result will appear to underline only a part of the
word or include additional space around the word.
TEST=WebFrameTest.SlowSpellcheckMarkerPosition
BUG=179639
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=151707
Patch Set 1 #Patch Set 2 : Fix crash in layout test #Patch Set 3 : Clear the queue, too #
Messages
Total messages: 12 (0 generated)
|