Don't change the focsued frame when target node is null.
authorJaehun Lim <ljaehun.lim@samsung.com>
Mon, 3 Jun 2013 06:35:07 +0000 (15:35 +0900)
committerJaehun Lim <ljaehun.lim@samsung.com>
Mon, 3 Jun 2013 06:35:07 +0000 (15:35 +0900)
[Title] Don't change the focsued frame when target node is null.
[Issue#] N_SE-39321
[Problem] The focus of IME is moved after panning.
[Cause] The focused frame is changed whenever panning starts,
        even though the touched node is not scrollabled.
[Solution] Don't change the focused frame when the pressed node is
           not scrollable.

Change-Id: I5cc12e3395dc34b0d39af1dcd1b1d3ed9f766bb8

Source/WebCore/page/EventHandler.cpp

index 087a4b1..7511287 100755 (executable)
@@ -1328,7 +1328,6 @@ void EventHandler::changeFocusedFrameAndNode(PassRefPtr<Node> targetNode)
         return;
 
     if (!targetNode) {
-        m_frame->page()->focusController()->setFocusedFrame(m_frame->page()->mainFrame());
         setMousePressNode(0);
         return;
     }