Changeset 133515 in webkit


Ignore:
Timestamp:
Nov 5, 2012, 12:40:13 PM (13 years ago)
Author:
rwlbuis@webkit.org
Message:

[BlackBerry] Input date should not popup dialog when readonly is set
https://bugs.webkit.org/show_bug.cgi?id=101234

Reviewed by Yong Li.

PR 236114

Reviewed internally by Mike Fenton.

Suppress popup dialog if the input element has readonly attribute set.

  • WebKitSupport/InputHandler.cpp:

(BlackBerry::WebKit::InputHandler::openDatePopup):
(BlackBerry::WebKit::InputHandler::openColorPopup):

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

Legend:

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

    r133502 r133515  
     12012-11-05  Rob Buis  <rbuis@rim.com>
     2
     3        [BlackBerry] Input date should not popup dialog when readonly is set
     4        https://bugs.webkit.org/show_bug.cgi?id=101234
     5
     6        Reviewed by Yong Li.
     7
     8        PR 236114
     9
     10        Reviewed internally by Mike Fenton.
     11
     12        Suppress popup dialog if the input element has readonly attribute set.
     13
     14        * WebKitSupport/InputHandler.cpp:
     15        (BlackBerry::WebKit::InputHandler::openDatePopup):
     16        (BlackBerry::WebKit::InputHandler::openColorPopup):
     17
    1182012-11-05  Genevieve Mak  <gmak@rim.com>
    219
  • trunk/Source/WebKit/blackberry/WebKitSupport/InputHandler.cpp

    r133343 r133515  
    963963bool InputHandler::openDatePopup(HTMLInputElement* element, BlackBerryInputType type)
    964964{
    965     if (!element || element->disabled() || !DOMSupport::isDateTimeInputField(element))
     965    if (!element || element->disabled() || element->readOnly() || !DOMSupport::isDateTimeInputField(element))
    966966        return false;
    967967
     
    992992bool InputHandler::openColorPopup(HTMLInputElement* element)
    993993{
    994     if (!element || element->disabled() || !DOMSupport::isColorInputField(element))
     994    if (!element || element->disabled() || element->readOnly() || !DOMSupport::isColorInputField(element))
    995995        return false;
    996996
Note: See TracChangeset for help on using the changeset viewer.