Changeset 112113 in webkit
- Timestamp:
- Mar 26, 2012 9:46:17 AM (12 years ago)
- Location:
- trunk
- Files:
-
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r112112 r112113 1 2012-03-26 Julien Chaffraix <jchaffraix@webkit.org> 2 3 REGRESSION(r110072): fast/forms/textfield-overflow.html is failing 4 https://bugs.webkit.org/show_bug.cgi?id=80531 5 6 Reviewed by Ojan Vafai. 7 8 * platform/chromium-linux/fast/table/colspanMinWidth-vertical-expected.png: 9 * platform/chromium-win/fast/table/colspanMinWidth-vertical-expected.txt: 10 This is a progression. The <input> now takes the full cell's space instead of 11 being shrunk. 12 13 * platform/efl/Skipped: 14 * platform/efl/test_expectations.txt: 15 * platform/gtk/Skipped: 16 * platform/gtk/test_expectations.txt: 17 * platform/mac/Skipped: 18 * platform/qt/Skipped: 19 * platform/win/Skipped: 20 Re-enable fast/forms/textfield-overflow.html as it should be passing. 21 Also disabled colspanMinWidth-vertical.html on platforms without a rebaseline. 22 23 * platform/chromium/test_expectations.txt: 24 Ditto and marked fast/repaint/search-field-cancel.html as failing image only. 25 1 26 2012-03-26 SravanKumar Sandela <ssandela@innominds.com> 2 27 -
trunk/LayoutTests/platform/chromium-win/fast/table/colspanMinWidth-vertical-expected.txt
r110179 r112113 19 19 RenderTableCell {TD} at (2,15) size 28x-24 [bgcolor=#FF00FF] [r=0 c=0 rs=1 cs=1] 20 20 RenderTableCell {TD} at (2,6) size 28x161 [bgcolor=#FFFF00] [r=0 c=1 rs=1 cs=1] 21 RenderTextControl {INPUT} at (3,3) size 22x 22[bgcolor=#FFFFFF] [border: (2px inset #000000)]22 RenderBlock {DIV} at (2, -64) size 18x14921 RenderTextControl {INPUT} at (3,3) size 22x155 [bgcolor=#FFFFFF] [border: (2px inset #000000)] 22 RenderBlock {DIV} at (2,70) size 18x16 23 23 RenderText {#text} at (0,0) size 0x0 -
trunk/LayoutTests/platform/chromium/test_expectations.txt
r112067 r112113 4086 4086 BUGWK75568 : fast/events/mouse-relative-position.html = TEXT 4087 4087 4088 BUGWK80531 : fast/repaint/search-field-cancel.html = TEXT IMAGE+TEXT 4089 BUGWK80531 : fast/forms/textfield-overflow.html = IMAGE+TEXT 4088 BUGWK80531 : fast/repaint/search-field-cancel.html = TEXT IMAGE+TEXT IMAGE 4090 4089 4091 4090 // Started failing (returning an empty render tree) at … … 4588 4587 BUGWK82122 SNOWLEOPARD : css3/selectors3/xml/css3-modsel-9.xml = TEXT PASS 4589 4588 4589 // Needs a rebaseline after the bug. 4590 // The inner <input> should now grow to take the full cell's height. 4591 BUGWK80531 WIN : fast/table/colspanMinWidth-vertical.html = IMAGE 4592 BUGWK80531 MAC : fast/table/colspanMinWidth-vertical.html = IMAGE+TEXT -
trunk/LayoutTests/platform/efl/Skipped
r112055 r112113 2695 2695 fast/css/color-correction-on-text-shadow.html 2696 2696 fast/css/color-correction-untagged-images.html 2697 2698 # The inner <input> should now grow to take the full cell's height. 2699 fast/table/colspanMinWidth-vertical.html -
trunk/LayoutTests/platform/efl/test_expectations.txt
r111910 r112113 154 154 BUGWK75568 : tables/mozilla/bugs/bug1188.html = TEXT 155 155 156 BUGWK80531 : fast/forms/textfield-overflow.html = IMAGE+TEXT157 158 156 // Temporary: generate platform specific IETestCenter results, then 159 157 // remove when bots produce reference. -
trunk/LayoutTests/platform/gtk/Skipped
r112058 r112113 1627 1627 # https://bugs.webkit.org/show_bug.cgi?id=82020 1628 1628 plugins/netscape-dom-access-and-reload.html 1629 1630 # The inner <input> should now grow to take the full cell's height. 1631 fast/table/colspanMinWidth-vertical.html -
trunk/LayoutTests/platform/gtk/test_expectations.txt
r111910 r112113 108 108 BUGWK79757 : fast/selectors/selection-window-inactive.html = IMAGE FAIL 109 109 110 BUGWK80531 : fast/forms/textfield-overflow.html = IMAGE+TEXT111 112 110 // Rebaseline after https://bugs.webkit.org/show_bug.cgi?id=78412 113 111 BUGWK78412 : tables/mozilla/bugs/bug2123.html = TEXT -
trunk/LayoutTests/platform/mac/Skipped
r111919 r112113 566 566 touchadjustment 567 567 568 # http:///webkit.org/b/80531569 # REGRESSION(r110072): fast/forms/textfield-overflow.html is failing570 fast/forms/textfield-overflow.html571 572 568 # canvas/philip/tests/2d.line.cap.round.html fails on Mac Lion WK1 573 569 # https://bugs.webkit.org/show_bug.cgi?id=81289 … … 626 622 fast/repaint/scroll-relative-table-inside-table-cell.html 627 623 fast/table/cell-pref-width-invalidation.html 624 625 # The inner <input> should now grow to take the full cell's height. 626 fast/table/colspanMinWidth-vertical.html -
trunk/LayoutTests/platform/qt/Skipped
r112107 r112113 2094 2094 tables/mozilla_expected_failures/bugs/bug85016.html 2095 2095 2096 # The inner <input> should now grow to take the full cell's height. 2097 fast/table/colspanMinWidth-vertical.html 2096 2098 # ============================================================================= # 2097 2099 # Failed canvas tests from http://philip.html5.org/tests/canvas/suite/tests/ -
trunk/LayoutTests/platform/win/Skipped
r112055 r112113 1854 1854 tables/mozilla/bugs/bug1188.html 1855 1855 1856 # Bug 805311857 fast/forms/textfield-overflow.html1858 1859 1856 # https://bugs.webkit.org/show_bug.cgi?id=43022 1860 1857 tables/mozilla_expected_failures/bugs/bug85016.html … … 1874 1871 fast/repaint/scroll-relative-table-inside-table-cell.html 1875 1872 fast/table/cell-pref-width-invalidation.html 1873 1874 # The inner <input> should now grow to take the full cell's height. 1875 fast/table/colspanMinWidth-vertical.html -
trunk/Source/WebCore/ChangeLog
r112110 r112113 1 2012-03-26 Julien Chaffraix <jchaffraix@webkit.org> 2 3 REGRESSION(r110072): fast/forms/textfield-overflow.html is failing 4 https://bugs.webkit.org/show_bug.cgi?id=80531 5 6 Reviewed by Ojan Vafai. 7 8 Tested by fast/forms/textfield-overflow.html (re-enabled after this change). 9 10 The existing code would happily query layout information before calling layout (FTW!). 11 The solution is to properly layout our object, then modify some dimensions as needed while 12 marking ourself as needing layout and then layouting again. 13 14 * rendering/RenderTextControlSingleLine.cpp: 15 (WebCore::RenderTextControlSingleLine::layout): 16 Implemented a proper 2 pass layout algorithm. Removed the |relayoutChildren| logic as: 17 - layoutBlock handles automatically logical height changes. 18 - we were not modifying the logical width between layouts so we don't need to force a 19 child relayout in this case. 20 1 21 2012-03-26 Robin Cao <robin.cao@torchmobile.com.cn> 2 22 -
trunk/Source/WebCore/rendering/RenderTextControlSingleLine.cpp
r111660 r112113 214 214 // because of compability. 215 215 216 LayoutUnit oldHeight = height(); 217 computeLogicalHeight(); 218 219 LayoutUnit oldWidth = width(); 220 computeLogicalWidth(); 221 222 bool relayoutChildren = oldHeight != height() || oldWidth != width(); 216 RenderBlock::layoutBlock(false); 223 217 224 218 RenderBox* innerTextRenderer = innerTextElement()->renderBox(); … … 235 229 if (currentHeight > heightLimit) { 236 230 if (desiredHeight != currentHeight) 237 relayoutChildren = true; 231 setNeedsLayout(true, false); 232 238 233 innerTextRenderer->style()->setHeight(Length(desiredHeight, Fixed)); 239 234 m_desiredInnerTextHeight = desiredHeight; … … 247 242 if (containerHeight > heightLimit) { 248 243 containerRenderer->style()->setHeight(Length(heightLimit, Fixed)); 249 relayoutChildren = true;244 setNeedsLayout(true, false); 250 245 } else if (containerRenderer->height() < contentHeight()) { 251 246 containerRenderer->style()->setHeight(Length(contentHeight(), Fixed)); 252 relayoutChildren = true;247 setNeedsLayout(true, false); 253 248 } else 254 249 containerRenderer->style()->setHeight(Length(containerHeight, Fixed)); 255 250 } 256 251 257 RenderBlock::layoutBlock(relayoutChildren); 252 // If we need another layout pass, we have changed one of children's height so we need to relayout them. 253 if (needsLayout()) 254 RenderBlock::layoutBlock(true); 258 255 259 256 // Center the child block vertically
Note: See TracChangeset
for help on using the changeset viewer.