Changeset 113422 in webkit


Ignore:
Timestamp:
Apr 6, 2012 3:01:09 AM (12 years ago)
Author:
tkent@chromium.org
Message:

Initial LocalizedDateICU.cpp implementation
https://bugs.webkit.org/show_bug.cgi?id=60868

Reviewed by Hajime Morita.

Source/WebCore:

Add LocalizedDateICU.cpp, which supports only Date type. It uses a
short format because a date field is keyboard-editable.
e.g. 5/15/11 in US locale.

  • WebCore.gyp/WebCore.gyp: Exclude LocalizedDateNone.cpp.
  • WebCore.gypi: Add LocalizedDateICU.cpp.
  • platform/text/LocalizedDateICU.cpp: Added.

(WebCore::parseLocalizedDate):
(WebCore::formatLocalizedDate):

LayoutTests:

  • platform/chromium-mac-snowleopard/fast/forms/date/date-appearance-expected.png:
  • platform/chromium-mac-snowleopard/fast/forms/date/date-appearance-expected.txt:
  • platform/chromium/fast/forms/date/date-input-visible-strings-expected.txt: Added.
Location:
trunk
Files:
3 added
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r113421 r113422  
     12012-04-06  Kent Tamura  <tkent@chromium.org>
     2
     3        Initial LocalizedDateICU.cpp implementation
     4        https://bugs.webkit.org/show_bug.cgi?id=60868
     5
     6        Reviewed by Hajime Morita.
     7
     8        * platform/chromium-mac-snowleopard/fast/forms/date/date-appearance-expected.png:
     9        * platform/chromium-mac-snowleopard/fast/forms/date/date-appearance-expected.txt:
     10        * platform/chromium/fast/forms/date/date-input-visible-strings-expected.txt: Added.
     11
    1122012-04-06  Csaba Osztrogonác  <ossy@webkit.org>
    213
  • trunk/LayoutTests/platform/chromium-mac-snowleopard/fast/forms/date/date-appearance-expected.txt

    r112839 r113422  
    77        RenderTextControl {INPUT} at (2,2) size 125x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
    88          RenderDeprecatedFlexibleBox {DIV} at (3,3) size 119x13
    9             RenderBlock {DIV} at (0,0) size 108x13
    10               RenderBlock {DIV} at (0,0) size 108x13
    11                 RenderText {#text} at (1,0) size 69x13
    12                   text run at (1,0) width 69: "2012-04-02"
    13             RenderBlock (anonymous) at (108,0) size 11x13
     9            RenderBlock {DIV} at (0,0) size 110x13
     10              RenderBlock {DIV} at (0,0) size 110x13
     11                RenderText {#text} at (1,0) size 40x13
     12                  text run at (1,0) width 40: "4/2/12"
     13            RenderBlock (anonymous) at (110,0) size 9x13
    1414              RenderDetailsMarker {DIV} at (0,4) size 7x7: down
    1515      RenderBlock {DIV} at (0,23) size 784x23
    1616        RenderTextControl {INPUT} at (2,2) size 125x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
    1717          RenderDeprecatedFlexibleBox {DIV} at (3,3) size 119x13
    18             RenderBlock {DIV} at (0,0) size 108x13
    19               RenderBlock {DIV} at (0,0) size 108x13
    20                 RenderText {#text} at (1,0) size 69x13
    21                   text run at (1,0) width 69: "2012-04-02"
    22             RenderBlock (anonymous) at (108,0) size 11x13
     18            RenderBlock {DIV} at (0,0) size 110x13
     19              RenderBlock {DIV} at (0,0) size 110x13
     20                RenderText {#text} at (1,0) size 40x13
     21                  text run at (1,0) width 40: "4/2/12"
     22            RenderBlock (anonymous) at (110,0) size 9x13
    2323              RenderDetailsMarker {DIV} at (0,4) size 7x7: down
    2424      RenderBlock {DIV} at (0,46) size 784x23
    2525        RenderTextControl {INPUT} at (2,2) size 125x19 [color=#545454] [bgcolor=#FFFFFF] [border: (2px inset #545454)]
    2626          RenderDeprecatedFlexibleBox {DIV} at (3,3) size 119x13
    27             RenderBlock {DIV} at (0,0) size 108x13
    28               RenderBlock {DIV} at (0,0) size 108x13
    29                 RenderText {#text} at (1,0) size 69x13
    30                   text run at (1,0) width 69: "2012-04-02"
    31             RenderBlock (anonymous) at (108,0) size 11x13
     27            RenderBlock {DIV} at (0,0) size 110x13
     28              RenderBlock {DIV} at (0,0) size 110x13
     29                RenderText {#text} at (1,0) size 40x13
     30                  text run at (1,0) width 40: "4/2/12"
     31            RenderBlock (anonymous) at (110,0) size 9x13
    3232              RenderDetailsMarker {DIV} at (0,4) size 7x7: down
    3333      RenderBlock {DIV} at (0,69) size 784x23
    3434        RenderTextControl {INPUT} at (2,2) size 125x19 [color=#FFFFFF] [bgcolor=#000000] [border: (2px inset #FFFFFF)]
    3535          RenderDeprecatedFlexibleBox {DIV} at (3,3) size 119x13
    36             RenderBlock {DIV} at (0,0) size 108x13
    37               RenderBlock {DIV} at (0,0) size 108x13
    38                 RenderText {#text} at (1,0) size 69x13
    39                   text run at (1,0) width 69: "2012-04-02"
    40             RenderBlock (anonymous) at (108,0) size 11x13
     36            RenderBlock {DIV} at (0,0) size 110x13
     37              RenderBlock {DIV} at (0,0) size 110x13
     38                RenderText {#text} at (1,0) size 40x13
     39                  text run at (1,0) width 40: "4/2/12"
     40            RenderBlock (anonymous) at (110,0) size 9x13
    4141              RenderDetailsMarker {DIV} at (0,4) size 7x7: down
    4242      RenderBlock {DIV} at (0,92) size 784x23
    4343        RenderTextControl {INPUT} at (2,2) size 125x19 [color=#FFFFFF] [bgcolor=#000000] [border: (2px inset #FFFFFF)]
    4444          RenderDeprecatedFlexibleBox {DIV} at (3,3) size 119x13
    45             RenderBlock {DIV} at (0,0) size 108x13
    46               RenderBlock {DIV} at (0,0) size 108x13
    47                 RenderText {#text} at (1,0) size 69x13
    48                   text run at (1,0) width 69: "2012-04-02"
    49             RenderBlock (anonymous) at (108,0) size 11x13
     45            RenderBlock {DIV} at (0,0) size 110x13
     46              RenderBlock {DIV} at (0,0) size 110x13
     47                RenderText {#text} at (1,0) size 40x13
     48                  text run at (1,0) width 40: "4/2/12"
     49            RenderBlock (anonymous) at (110,0) size 9x13
    5050              RenderDetailsMarker {DIV} at (0,4) size 7x7: down
    5151      RenderBlock {DIV} at (0,115) size 784x23
    5252        RenderTextControl {INPUT} at (2,2) size 125x19 [color=#FFFFFF] [bgcolor=#000000] [border: (2px inset #FFFFFF)]
    5353          RenderDeprecatedFlexibleBox {DIV} at (3,3) size 119x13
    54             RenderBlock {DIV} at (0,0) size 108x13
    55               RenderBlock {DIV} at (0,0) size 108x13
    56                 RenderText {#text} at (1,0) size 69x13
    57                   text run at (1,0) width 69: "2012-04-02"
    58             RenderBlock (anonymous) at (108,0) size 11x13
     54            RenderBlock {DIV} at (0,0) size 110x13
     55              RenderBlock {DIV} at (0,0) size 110x13
     56                RenderText {#text} at (1,0) size 40x13
     57                  text run at (1,0) width 40: "4/2/12"
     58            RenderBlock (anonymous) at (110,0) size 9x13
    5959              RenderDetailsMarker {DIV} at (0,4) size 7x7: down
    6060      RenderBlock {DIV} at (0,138) size 784x45
    6161        RenderTextControl {INPUT} at (2,2) size 314x41 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
    6262          RenderDeprecatedFlexibleBox {DIV} at (3,3) size 308x35
    63             RenderBlock {DIV} at (0,0) size 277x35
    64               RenderBlock {DIV} at (0,0) size 277x35
    65                 RenderText {#text} at (1,0) size 187x35
    66                   text run at (1,0) width 187: "2012-04-02"
    67             RenderBlock (anonymous) at (277,0) size 31x35
     63            RenderBlock {DIV} at (0,0) size 283x35
     64              RenderBlock {DIV} at (0,0) size 283x35
     65                RenderText {#text} at (1,0) size 108x35
     66                  text run at (1,0) width 108: "4/2/12"
     67            RenderBlock (anonymous) at (283,0) size 25x35
    6868              RenderDetailsMarker {DIV} at (0,10) size 19x19: down
    6969      RenderBlock {DIV} at (0,183) size 784x45
    7070        RenderTextControl {INPUT} at (2,2) size 314x41 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
    7171          RenderDeprecatedFlexibleBox {DIV} at (3,3) size 308x35
    72             RenderBlock {DIV} at (0,0) size 277x35
    73               RenderBlock {DIV} at (0,0) size 277x35
    74                 RenderText {#text} at (1,0) size 187x35
    75                   text run at (1,0) width 187: "2012-04-02"
    76             RenderBlock (anonymous) at (277,0) size 31x35
     72            RenderBlock {DIV} at (0,0) size 283x35
     73              RenderBlock {DIV} at (0,0) size 283x35
     74                RenderText {#text} at (1,0) size 108x35
     75                  text run at (1,0) width 108: "4/2/12"
     76            RenderBlock (anonymous) at (283,0) size 25x35
    7777              RenderDetailsMarker {DIV} at (0,10) size 19x19: down
    7878      RenderBlock {DIV} at (0,228) size 784x45
    7979        RenderTextControl {INPUT} at (2,2) size 314x41 [color=#545454] [bgcolor=#FFFFFF] [border: (2px inset #545454)]
    8080          RenderDeprecatedFlexibleBox {DIV} at (3,3) size 308x35
    81             RenderBlock {DIV} at (0,0) size 277x35
    82               RenderBlock {DIV} at (0,0) size 277x35
    83                 RenderText {#text} at (1,0) size 187x35
    84                   text run at (1,0) width 187: "2012-04-02"
    85             RenderBlock (anonymous) at (277,0) size 31x35
     81            RenderBlock {DIV} at (0,0) size 283x35
     82              RenderBlock {DIV} at (0,0) size 283x35
     83                RenderText {#text} at (1,0) size 108x35
     84                  text run at (1,0) width 108: "4/2/12"
     85            RenderBlock (anonymous) at (283,0) size 25x35
    8686              RenderDetailsMarker {DIV} at (0,10) size 19x19: down
  • trunk/Source/WebCore/ChangeLog

    r113418 r113422  
     12012-04-06  Kent Tamura  <tkent@chromium.org>
     2
     3        Initial LocalizedDateICU.cpp implementation
     4        https://bugs.webkit.org/show_bug.cgi?id=60868
     5
     6        Reviewed by Hajime Morita.
     7
     8        Add LocalizedDateICU.cpp, which supports only Date type.  It uses a
     9        short format because a date field is keyboard-editable.
     10        e.g. 5/15/11 in US locale.
     11
     12        * WebCore.gyp/WebCore.gyp: Exclude LocalizedDateNone.cpp.
     13        * WebCore.gypi: Add LocalizedDateICU.cpp.
     14        * platform/text/LocalizedDateICU.cpp: Added.
     15        (WebCore::parseLocalizedDate):
     16        (WebCore::formatLocalizedDate):
     17
    1182012-04-05  Alexander Pavlov  <apavlov@chromium.org>
    219
  • trunk/Source/WebCore/WebCore.gyp/WebCore.gyp

    r113298 r113422  
    14881488        ['exclude', 'platform/sql/SQLiteFileSystem\\.cpp$'],
    14891489        ['exclude', 'platform/text/LocaleToScriptMappingICU\\.cpp$'],
     1490        ['exclude', 'platform/text/LocalizedDateNone\\.cpp$'],
    14901491        ['exclude', 'platform/text/LocalizedNumberNone\\.cpp$'],
    14911492        ['exclude', 'platform/text/TextEncodingDetectorNone\\.cpp$'],
  • trunk/Source/WebCore/WebCore.gypi

    r113416 r113422  
    44304430            'platform/text/LocalizedCalendarICU.cpp',
    44314431            'platform/text/LocalizedDate.h',
     4432            'platform/text/LocalizedDateICU.cpp',
    44324433            'platform/text/LocalizedDateNone.cpp',
    44334434            'platform/text/LocalizedNumber.h',
Note: See TracChangeset for help on using the changeset viewer.