Skip to content
  • commit-queue@webkit.org's avatar
    Clean up spellcheck state when changing focus. · 0e03c1b5
    commit-queue@webkit.org authored
    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: http://svn.webkit.org/repository/webkit/trunk@148635 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    0e03c1b5