Changeset 132240 in webkit


Ignore:
Timestamp:
Oct 23, 2012 10:12:47 AM (11 years ago)
Author:
rwlbuis@webkit.org
Message:

[BlackBerry] Make selection in search input box not overlap cancel button
https://bugs.webkit.org/show_bug.cgi?id=100130

Reviewed by Antonio Gomes.

This ensures that even when selection is active, the user can still press 'cancel'.

  • WebKitSupport/InputHandler.cpp:

(BlackBerry::WebKit::InputHandler::boundingBoxForInputField):

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

Legend:

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

    r132224 r132240  
     12012-10-23  Rob Buis  <rbuis@rim.com>
     2
     3        [BlackBerry] Make selection in search input box not overlap cancel button
     4        https://bugs.webkit.org/show_bug.cgi?id=100130
     5
     6        Reviewed by Antonio Gomes.
     7
     8        This ensures that even when selection is active, the user can still press 'cancel'.
     9
     10        * WebKitSupport/InputHandler.cpp:
     11        (BlackBerry::WebKit::InputHandler::boundingBoxForInputField):
     12
    1132012-10-23  Arvid Nilsson  <anilsson@rim.com>
    214
  • trunk/Source/WebKit/blackberry/WebKitSupport/InputHandler.cpp

    r132083 r132240  
    10421042        return WebCore::IntRect();
    10431043
     1044    // type="search" can have a 'X', so take the inner block bounding box to not include it.
     1045    if (HTMLInputElement* element = m_currentFocusElement->toInputElement())
     1046        if (element->isSearchField())
     1047            return element->innerBlockElement()->renderer()->absoluteBoundingBoxRect();
     1048
    10441049    return m_currentFocusElement->renderer()->absoluteBoundingBoxRect();
    10451050}
Note: See TracChangeset for help on using the changeset viewer.