Changeset 139667 in webkit


Ignore:
Timestamp:
Jan 14, 2013 2:41:09 PM (11 years ago)
Author:
commit-queue@webkit.org
Message:

[BlackBerry] FCC appears when switching search engine providers
https://bugs.webkit.org/show_bug.cgi?id=106824

Magnifying glass appears when switching search engine providers

PR 279178

Patch by Otto Derek Cheung <otcheung@rim.com> on 2013-01-14
Reviewed by Rob Buis.
Internal Reviewed by Mike Fenton.

We need to make sure fatfinger is touching a textfield when we tell notifyCaretChanged
to show the FCC.

This behaviour is accidentally regressed in the fix in PR 267177, causing the FCC to show
when the user touches an element that is not a textfield and changes the caret in the inputbar..

Tested that the behaviour in 267177 isn't reproducible and the FCC isn't invoked when we switch
search engine providers.

  • WebKitSupport/SelectionHandler.cpp:

(BlackBerry::WebKit::SelectionHandler::caretPositionChanged):

Location:
trunk/Source/WebKit/blackberry
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/blackberry/ChangeLog

    r139629 r139667  
     12013-01-14  Otto Derek Cheung  <otcheung@rim.com>
     2
     3        [BlackBerry] FCC appears when switching search engine providers
     4        https://bugs.webkit.org/show_bug.cgi?id=106824
     5
     6        Magnifying glass appears when switching search engine providers
     7
     8        PR 279178
     9
     10        Reviewed by Rob Buis.
     11        Internal Reviewed by Mike Fenton.
     12
     13        We need to make sure fatfinger is touching a textfield when we tell notifyCaretChanged
     14        to show the FCC.
     15
     16        This behaviour is accidentally regressed in the fix in PR 267177, causing the FCC to show
     17        when the user touches an element that is not a textfield and changes the caret in the inputbar..
     18
     19        Tested that the behaviour in 267177 isn't reproducible and the FCC isn't invoked when we switch
     20        search engine providers.
     21
     22        * WebKitSupport/SelectionHandler.cpp:
     23        (BlackBerry::WebKit::SelectionHandler::caretPositionChanged):
     24
    1252013-01-14  Jacky Jiang  <zhajiang@rim.com>
    226
  • trunk/Source/WebKit/blackberry/WebKitSupport/SelectionHandler.cpp

    r139295 r139667  
    10291029    SelectionLog(Platform::LogLevelInfo, "SelectionHandler::caretPositionChanged");
    10301030
     1031    bool isFatFingerOnTextField = userTouchTriggered && m_webPage->m_touchEventHandler->lastFatFingersResult().isTextInput();
     1032
    10311033    WebCore::IntRect caretLocation;
    10321034    // If the input field is not active, we must be turning off the caret.
     
    10341036        m_caretActive = false;
    10351037        // Send an empty caret change to turn off the caret.
    1036         m_webPage->m_client->notifyCaretChanged(caretLocation, userTouchTriggered);
     1038        m_webPage->m_client->notifyCaretChanged(caretLocation, isFatFingerOnTextField);
    10371039        return;
    10381040    }
     
    10751077        m_webPage->m_inputHandler->elementText().isEmpty() ? ", empty text field" : "");
    10761078
    1077     m_webPage->m_client->notifyCaretChanged(caretLocation, userTouchTriggered, isSingleLineInput, nodeBoundingBox, m_webPage->m_inputHandler->elementText().isEmpty());
     1079    m_webPage->m_client->notifyCaretChanged(caretLocation, isFatFingerOnTextField, isSingleLineInput, nodeBoundingBox, m_webPage->m_inputHandler->elementText().isEmpty());
    10781080}
    10791081
Note: See TracChangeset for help on using the changeset viewer.