Skip to content
  • commit-queue@webkit.org's avatar
    [BlackBerry] Always use the current focused node when processing focus changes · 1c73980f
    commit-queue@webkit.org authored
    https://bugs.webkit.org/show_bug.cgi?id=80594
    
    Patch by Mike Fenton <mifenton@rim.com> on 2012-03-08
    Reviewed by Antonio Gomes.
    
    Update InputHandler focused node handling to strictly use
    the currently focused node.  This prevents a handling loop
    when JS is modifying the focus and we get a late notification
    of a past change from ChromeClientBlackBerry with the previously
    unfocused node.
    
    * WebCoreSupport/ChromeClientBlackBerry.cpp:
    (WebCore::ChromeClientBlackBerry::focusedNodeChanged):
    * WebCoreSupport/EditorClientBlackBerry.cpp:
    (WebCore::EditorClientBlackBerry::shouldChangeSelectedRange):
    (WebCore::EditorClientBlackBerry::setInputMethodState):
    * WebKitSupport/InputHandler.cpp:
    (BlackBerry::WebKit::InputHandler::focusedNodeChanged):
    * WebKitSupport/InputHandler.h:
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@110175 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    1c73980f