Changeset 76567 in webkit
- Timestamp:
- Jan 24, 2011 8:38:29 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r76566 r76567 1 2011-01-24 Kent Tamura <tkent@chromium.org> 2 3 Reviewed by Dimitri Glazkov. 4 5 [Windows] Textfield <input>s have different widths. 6 https://bugs.webkit.org/show_bug.cgi?id=48405 7 8 * fast/forms/input-widths-expected.txt: Added. 9 * fast/forms/input-widths.html: Added. 10 1 11 2011-01-24 Kent Tamura <tkent@chromium.org> 2 12 -
trunk/Source/WebCore/ChangeLog
r76566 r76567 1 2011-01-24 Kent Tamura <tkent@chromium.org> 2 3 Reviewed by Dimitri Glazkov. 4 5 [Windows] Textfield <input>s have different widths. 6 https://bugs.webkit.org/show_bug.cgi?id=48405 7 8 - Apply the padding override for type=text to other textfield types too. 9 - Reset margin value of outer spin button, which is not used in Windows. 10 - Don't add inner spin button width to the preferred text field width. 11 Text fields should have the identical widths regardless of the 12 existence of spin buttons. 13 14 Test: fast/forms/input-widths.html 15 16 * css/themeWin.css: 17 (input[type="week"]): 18 (input[type="week"]:disabled): 19 (input[type="search"]::-webkit-search-cancel-button): 20 (input::-webkit-outer-spin-button): 21 * rendering/RenderTextControlSingleLine.cpp: 22 (WebCore::RenderTextControlSingleLine::preferredContentWidth): 23 Don't add inner spin button width to the preferred width. 24 1 25 2011-01-24 Kent Tamura <tkent@chromium.org> 2 26 -
trunk/Source/WebCore/css/themeWin.css
r63071 r76567 34 34 35 35 input:not([type]), 36 input[type="color"], 37 input[type="date"], 38 input[type="datetime"], 39 input[type="datetime-local"], 40 input[type="email"], 41 input[type="month"], 42 input[type="number"], 43 input[type="password"], 44 input[type="tel"], 36 45 input[type="text"], 37 input[type="password"] { 46 input[type="time"], 47 input[type="url"], 48 input[type="week"] { 38 49 padding:1px 0; 39 50 } … … 60 71 textarea:disabled, 61 72 input:not([type]):disabled, 73 input[type="color"]:disabled, 74 input[type="date"]:disabled, 75 input[type="datetime"]:disabled, 76 input[type="datetime-local"]:disabled, 77 input[type="email"]:disabled, 78 input[type="month"]:disabled, 79 input[type="password"]:disabled, 80 input[type="number"]:disabled, 81 input[type="search"]:disabled, 82 input[type="tel"]:disabled, 62 83 input[type="text"]:disabled, 63 input[type="password"]:disabled, 64 input[type="search"]:disabled { 84 input[type="time"]:disabled, 85 input[type="url"]:disabled, 86 input[type="week"]:disabled { 65 87 background-color: #EBEBE4; 66 88 } 67 89 68 90 input[type="search"]::-webkit-search-cancel-button { 69 margin-right: 3px;91 margin-right: 3px; 70 92 } 71 93 … … 76 98 input[type="search"]::-webkit-search-results-button { 77 99 margin: 0 3px 0 2px; 100 } 101 102 input::-webkit-outer-spin-button { 103 margin: 0; 78 104 } 79 105 -
trunk/Source/WebCore/rendering/RenderTextControlSingleLine.cpp
r76442 r76567 561 561 cancelRenderer->paddingLeft() + cancelRenderer->paddingRight(); 562 562 563 if (RenderBox* spinRenderer = m_innerSpinButton ? m_innerSpinButton->renderBox() : 0)564 result += spinRenderer->minPreferredLogicalWidth();565 566 563 #if ENABLE(INPUT_SPEECH) 567 564 if (RenderBox* speechRenderer = m_speechButton ? m_speechButton->renderBox() : 0) {
Note: See TracChangeset
for help on using the changeset viewer.