Bug 110974 - REGRESSION: INPUT_MULTIPLE_FIELDS_UI: Changing CSS display property on input[type=date] unexpectedly makes another line for ::-webkit-calendar-picker-indicator
: REGRESSION: INPUT_MULTIPLE_FIELDS_UI: Changing CSS display property on input[...
Status: RESOLVED FIXED
: WebKit
Forms
: 528+ (Nightly build)
: Unspecified Unspecified
: P2 Normal
Assigned To:
:
:
:
:
  Show dependency treegraph
 
Reported: 2013-02-27 06:03 PST by
Modified: 2013-02-28 15:35 PST (History)


Attachments
Screenshot (12.26 KB, image/png)
2013-02-27 06:04 PST, Kent Tamura
no flags Details
Patch (126.36 KB, patch)
2013-02-27 06:09 PST, Kent Tamura
no flags Review Patch | Details | Formatted Diff | Diff
Patch 2 (133.85 KB, patch)
2013-02-28 05:12 PST, Kent Tamura
no flags Review Patch | Details | Formatted Diff | Diff


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2013-02-27 06:03:40 PST
<input type=date style="display:inline-block;">

has 2-lines height and the second line contains only calendar picker arrow.

Twitter bootstrap adds display:inline-block by default.


https://code.google.com/p/chromium/issues/detail?id=178175
------- Comment #1 From 2013-02-27 06:04:09 PST -------
Created an attachment (id=190500) [details]
Screenshot
------- Comment #2 From 2013-02-27 06:09:28 PST -------
Created an attachment (id=190502) [details]
Patch
------- Comment #3 From 2013-02-27 06:12:18 PST -------
Attachment 190502 [details] did not pass style-queue:

Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'LayoutTests/ChangeLog', u'LayoutTests/fast/forms/date/date-appearance-basic-expected.txt', u'LayoutTests/fast/forms/date/date-appearance-basic.html', u'LayoutTests/platform/chromium-mac/fast/forms/date/date-appearance-basic-expected.png', u'LayoutTests/platform/chromium/TestExpectations', u'Source/WebCore/ChangeLog', u'Source/WebCore/html/BaseMultipleFieldsDateAndTimeInputType.cpp', u'Source/WebCore/html/BaseMultipleFieldsDateAndTimeInputType.h']" exit_code: 1
LayoutTests/platform/chromium-mac/fast/forms/date/date-appearance-basic-expected.png:0:  Have to enable auto props in the subversion config file (/home/alancutter/.subversion/config "enable-auto-props = yes"). Have to set the svn:mime-type in the subversion config file (/home/alancutter/.subversion/config "*.png = svn:mime-type=image/png").  [image/png] [5]
Total errors found: 1 in 8 files


If any of these errors are false positives, please file a bug against check-webkit-style.
------- Comment #4 From 2013-02-27 07:02:58 PST -------
(From update of attachment 190502 [details])
rs=me
------- Comment #5 From 2013-02-27 07:31:47 PST -------
(From update of attachment 190502 [details])
Clearing flags on attachment: 190502

Committed r144184: <http://trac.webkit.org/changeset/144184>
------- Comment #6 From 2013-02-27 07:31:50 PST -------
All reviewed patches have been landed.  Closing bug.
------- Comment #7 From 2013-02-28 00:46:56 PST -------
(In reply to comment #5)
> (From update of attachment 190502 [details] [details])
> Clearing flags on attachment: 190502
> 
> Committed r144184: <http://trac.webkit.org/changeset/144184>

I found the flexible box didn't work well with this change.  I'm reverting.
------- Comment #8 From 2013-02-28 00:58:09 PST -------
Reverted r144184 for reason:

The change didn't fix all of the problems.

Committed r144271: <http://trac.webkit.org/changeset/144271>
------- Comment #9 From 2013-02-28 05:12:04 PST -------
Created an attachment (id=190710) [details]
Patch 2
------- Comment #10 From 2013-02-28 05:16:50 PST -------
Attachment 190710 [details] did not pass style-queue:

Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'LayoutTests/ChangeLog', u'LayoutTests/fast/forms/date/date-appearance-basic-expected.txt', u'LayoutTests/fast/forms/date/date-appearance-basic.html', u'LayoutTests/platform/chromium-mac/fast/forms/date/date-appearance-basic-expected.png', u'LayoutTests/platform/chromium/TestExpectations', u'Source/WebCore/ChangeLog', u'Source/WebCore/css/html.css', u'Source/WebCore/html/BaseMultipleFieldsDateAndTimeInputType.cpp', u'Source/WebCore/html/BaseMultipleFieldsDateAndTimeInputType.h', u'Source/WebCore/html/HTMLInputElement.cpp', u'Source/WebCore/html/InputType.cpp', u'Source/WebCore/html/InputType.h']" exit_code: 1
LayoutTests/platform/chromium-mac/fast/forms/date/date-appearance-basic-expected.png:0:  Have to enable auto props in the subversion config file (/home/alancutter/.subversion/config "enable-auto-props = yes"). Have to set the svn:mime-type in the subversion config file (/home/alancutter/.subversion/config "*.png = svn:mime-type=image/png").  [image/png] [5]
Total errors found: 1 in 12 files


If any of these errors are false positives, please file a bug against check-webkit-style.
------- Comment #11 From 2013-02-28 08:47:34 PST -------
(From update of attachment 190710 [details])
View in context: https://bugs.webkit.org/attachment.cgi?id=190710&action=review

> Source/WebCore/html/HTMLInputElement.cpp:-1968
> -    if (!m_inputType->shouldApplyLocaleDirection())
> -        return originalStyle.release();

Why do you want to remove shouldApplyLocaleDirection() from the new code?
------- Comment #12 From 2013-02-28 10:05:30 PST -------
(From update of attachment 190710 [details])
View in context: https://bugs.webkit.org/attachment.cgi?id=190710&action=review

>> Source/WebCore/html/HTMLInputElement.cpp:-1968
>> -        return originalStyle.release();
> 
> Why do you want to remove shouldApplyLocaleDirection() from the new code?

I converted shouldApplyLocaleDirection to another virtual function, InputType::customStyleForRenderer.
Only BaseMultipleFieldsDateAndTimeInputType returns true for shouldApplyLocaleDirection. So we can move the code followed by "if (...shouldApplyLocaleDirection())" to BaseMultipleFieldsDateAndTimeInputType::customStyleForRenderer.
------- Comment #13 From 2013-02-28 10:15:52 PST -------
(From update of attachment 190710 [details])
ah, I got it. Looks OK to me.
------- Comment #14 From 2013-02-28 13:01:13 PST -------
(From update of attachment 190710 [details])
Clearing flags on attachment: 190710

Committed r144352: <http://trac.webkit.org/changeset/144352>
------- Comment #15 From 2013-02-28 13:01:18 PST -------
All reviewed patches have been landed.  Closing bug.
------- Comment #16 From 2013-02-28 15:35:42 PST -------
updated the baseline for fast/forms/date/date-appearance-basic.html