Changeset 133952 in webkit


Ignore:
Timestamp:
Nov 8, 2012 2:25:28 PM (11 years ago)
Author:
commit-queue@webkit.org
Message:

[BlackBerry] Update BB10 date input form.
https://bugs.webkit.org/show_bug.cgi?id=101075

Patch by Tiancheng Jiang <tijiang@rim.com> on 2012-11-08
Reviewed by Rob Buis.

RIM PR 234531
Internally Reviewed by Mike Fenton.
Change date input appearance to button and hide caret when click on them.

Source/WebCore:

  • css/themeBlackBerry.css:

(input[type="date"], input[type="datetime"], input[type="datetime-local"], input[type="time"], input[type="month"]):

Source/WebKit/blackberry:

  • WebCoreSupport/DatePickerClient.cpp:

(WebCore::DatePickerClient::setValueAndClosePopup):

  • WebKitSupport/InputHandler.cpp:

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

Location:
trunk/Source
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r133945 r133952  
     12012-11-08  Tiancheng Jiang  <tijiang@rim.com>
     2
     3        [BlackBerry] Update BB10 date input form.
     4        https://bugs.webkit.org/show_bug.cgi?id=101075
     5
     6        Reviewed by Rob Buis.
     7
     8        RIM PR 234531
     9        Internally Reviewed by Mike Fenton.
     10        Change date input appearance to button and hide caret when click on them.
     11
     12        * css/themeBlackBerry.css:
     13        (input[type="date"], input[type="datetime"], input[type="datetime-local"], input[type="time"], input[type="month"]):
     14
    1152012-11-08  Adam Barth  <abarth@webkit.org>
    216
  • trunk/Source/WebCore/css/themeBlackBerry.css

    r133674 r133952  
    1919textarea {
    2020    font-family: monospace;
    21 }
    22 
    23 input[type="datetime"],
    24 input[type="date"],
    25 input[type="week"],
    26 input[type="month"],
    27 input[type="time"],
    28 input[type="datetime-local"],
    29 input[type="number"],
    30 input[type="color"] {
    31     border: solid 2px blue;
    3221}
    3322
     
    6453    font-weight: normal;
    6554}
     55
     56input[type="date"], input[type="datetime"], input[type="datetime-local"], input[type="time"], input[type="month"] {
     57    -webkit-appearance: button;
     58    text-align: center;
     59}
  • trunk/Source/WebKit/blackberry/ChangeLog

    r133951 r133952  
     12012-11-08  Tiancheng Jiang  <tijiang@rim.com>
     2
     3        [BlackBerry] Update BB10 date input form.
     4        https://bugs.webkit.org/show_bug.cgi?id=101075
     5
     6        Reviewed by Rob Buis.
     7
     8        RIM PR 234531
     9        Internally Reviewed by Mike Fenton.
     10        Change date input appearance to button and hide caret when click on them.
     11
     12        * WebCoreSupport/DatePickerClient.cpp:
     13        (WebCore::DatePickerClient::setValueAndClosePopup):
     14        * WebKitSupport/InputHandler.cpp:
     15        (BlackBerry::WebKit::InputHandler::openDatePopup):
     16
    1172012-11-08  Nima Ghanavatian  <nghanavatian@rim.com>
    218
  • trunk/Source/WebKit/blackberry/WebCoreSupport/DatePickerClient.cpp

    r131316 r133952  
    2424#include "Document.h"
    2525#include "DocumentWriter.h"
     26#include "Frame.h"
    2627#include "HTMLInputElement.h"
    2728#include "Page.h"
     
    129130    ASSERT(m_element);
    130131
     132    // We hide caret when we select date input field, restore it when we close date picker.
     133    m_element->document()->frame()->selection()->setCaretVisible(true);
     134
    131135    if (value != "-1")
    132136        m_element->setValue(value);
  • trunk/Source/WebKit/blackberry/WebKitSupport/InputHandler.cpp

    r133951 r133952  
    983983    case BlackBerry::Platform::InputTypeDateTimeLocal:
    984984    case BlackBerry::Platform::InputTypeMonth: {
     985        // Date input have button appearance, we hide caret when they get clicked.
     986        element->document()->frame()->selection()->setCaretVisible(false);
     987
    985988        // Check if popup already exists, close it if does.
    986989        m_webPage->m_page->chrome()->client()->closePagePopup(0);
Note: See TracChangeset for help on using the changeset viewer.