Changeset 130716 in webkit
- Timestamp:
- Oct 8, 2012 7:18:20 PM (12 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r130714 r130716 1 2012-10-08 Kent Tamura <tkent@chromium.org> 2 3 Take account of overflowing values for width calculation of a year sub-field 4 https://bugs.webkit.org/show_bug.cgi?id=98506 5 6 Reviewed by Eric Seidel. 7 8 * fast/forms/date-multiple-fields/date-multiple-fields-change-layout-by-value-expected.txt: Added. 9 * fast/forms/date-multiple-fields/date-multiple-fields-change-layout-by-value.html: Added. 10 1 11 2012-10-08 Tony Chang <tony@chromium.org> 2 12 -
trunk/Source/WebCore/ChangeLog
r130714 r130716 1 2012-10-08 Kent Tamura <tkent@chromium.org> 2 3 Take account of overflowing values for width calculation of a year sub-field 4 https://bugs.webkit.org/show_bug.cgi?id=98506 5 6 Reviewed by Eric Seidel. 7 8 When we decide the width of a year field of an input[type=date] 9 with the multiple fields UI, we need to take account of the 10 current value width because we allow to set overflowing values to 11 the input[type=date]. 12 13 This change affects only platforms with INPUT_TYPE_DATE && 14 INPUT_MULTIPLE_FIELDS_UI. 15 16 Test: fast/forms/date-multiple-fields/date-multiple-fields-change-layout-by-value.html 17 18 * html/shadow/DateTimeNumericFieldElement.cpp: 19 (WebCore::DateTimeNumericFieldElement::customStyleForRenderer): 20 Take account of the current value width. 21 1 22 2012-10-08 Tony Chang <tony@chromium.org> 2 23 -
trunk/Source/WebCore/html/shadow/DateTimeNumericFieldElement.cpp
r130477 r130716 82 82 float maxiumWidth = style->font().width(m_placeholder); 83 83 maxiumWidth = std::max(maxiumWidth, style->font().width(formatValue(maximum()))); 84 maxiumWidth = std::max(maxiumWidth, style->font().width(value())); 84 85 style->setWidth(Length(maxiumWidth, Fixed)); 85 86 return style.release();
Note: See TracChangeset
for help on using the changeset viewer.