Changeset 145121 in webkit


Ignore:
Timestamp:
Mar 7, 2013 12:55:29 PM (11 years ago)
Author:
mifenton@rim.com
Message:

[BlackBerry] Prevent text selection inside Colour and Date/Time input fields
https://bugs.webkit.org/show_bug.cgi?id=111733

Reviewed by Rob Buis.

PR 305194.

Prevent selection for popup input fields as they are buttons.

Informally Reviewed Gen Mak.

  • WebCoreSupport/EditorClientBlackBerry.cpp:

(WebCore::EditorClientBlackBerry::shouldChangeSelectedRange):

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

Legend:

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

    r144977 r145121  
     12013-03-07  Mike Fenton  <mifenton@rim.com>
     2
     3        [BlackBerry] Prevent text selection inside Colour and Date/Time input fields
     4        https://bugs.webkit.org/show_bug.cgi?id=111733
     5
     6        Reviewed by Rob Buis.
     7
     8        PR 305194.
     9
     10        Prevent selection for popup input fields as they are buttons.
     11
     12        Informally Reviewed Gen Mak.
     13
     14        * WebCoreSupport/EditorClientBlackBerry.cpp:
     15        (WebCore::EditorClientBlackBerry::shouldChangeSelectedRange):
     16
    1172013-03-06  Nima Ghanavatian  <nghanavatian@rim.com>
    218
  • trunk/Source/WebKit/blackberry/WebCoreSupport/EditorClientBlackBerry.cpp

    r142576 r145121  
    186186    Frame* frame = m_webPagePrivate->focusedOrMainFrame();
    187187    if (frame && frame->document()) {
    188         if (frame->document()->focusedNode() && frame->document()->focusedNode()->hasTagName(HTMLNames::selectTag))
    189             return false;
     188        if (Node* focusedNode = frame->document()->focusedNode()) {
     189            if (focusedNode->hasTagName(HTMLNames::selectTag))
     190                return false;
     191            if (focusedNode->isElementNode() && DOMSupport::isPopupInputField(static_cast<Element*>(focusedNode)))
     192                return false;
     193        }
    190194
    191195        // Check if this change does not represent a focus change and input is active and if so ensure the keyboard is visible.
Note: See TracChangeset for help on using the changeset viewer.