Clean up spellcheck state when changing focus.
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 17 Apr 2013 21:14:08 +0000 (21:14 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 17 Apr 2013 21:14:08 +0000 (21:14 +0000)
commit4bbccacfd2af5cc4b439064fb0f3b563ee65f22d
tree0ef1cd3f89387b4b82b3a9a50257fd41b459ebe2
parent6ccefe9da0a2a3b4c82a0ad15deb4dfd4137acb9
Clean up spellcheck state when changing focus.
https://bugs.webkit.org/show_bug.cgi?id=114758

Patch by Nima Ghanavatian <nghanavatian@blackberry.com> on 2013-04-17
Reviewed by Rob Buis.

Internally reviewed by Mike Fenton and Gen Mak.

PR325941
If we lose focus while waiting for a spellcheck request to return, we will
never see the reply and continue to queue up future requests. By clearing
the queue we ensure that all requests being processed and waiting to fire
are valid.

* WebKitSupport/InputHandler.cpp:
(BlackBerry::WebKit::InputHandler::setElementUnfocused):
* WebKitSupport/SpellingHandler.cpp:
(BlackBerry::WebKit::SpellingHandler::spellCheckTextBlock):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@148635 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebKit/blackberry/ChangeLog
Source/WebKit/blackberry/WebKitSupport/InputHandler.cpp
Source/WebKit/blackberry/WebKitSupport/SpellingHandler.cpp