REGRESSION(102040): Auto-table layout with percent width doesn't shrink-to-fit conten...
authorjchaffraix@webkit.org <jchaffraix@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 18 Apr 2012 23:07:51 +0000 (23:07 +0000)
committerjchaffraix@webkit.org <jchaffraix@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 18 Apr 2012 23:07:51 +0000 (23:07 +0000)
commit166ec733ba00e986ebc3d65cfa2af2c29b6df0ae
treed538d930524620d5706b50c9809cd4f19dcc3cdd
parent42e39c274495ff6fef3ae261ef863cdef57db031
REGRESSION(102040): Auto-table layout with percent width doesn't shrink-to-fit content a cell with colspan
https://bugs.webkit.org/show_bug.cgi?id=84260

Reviewed by Ojan Vafai.

Source/WebCore:

Tests: fast/table/td-width-fifty-percent-regression-expected.html
       fast/table/td-width-fifty-percent-regression.html

* rendering/AutoTableLayout.cpp:
(WebCore::AutoTableLayout::calcEffectiveLogicalWidth):
As we are spreading the cell's min / max logical width, we should be updating them.
This prevents the following logic getting confused and allocating more than needed.

LayoutTests:

* fast/table/td-width-fifty-percent-regression-expected.html: Added.
* fast/table/td-width-fifty-percent-regression.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@114574 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/table/td-width-fifty-percent-regression-expected.html [new file with mode: 0755]
LayoutTests/fast/table/td-width-fifty-percent-regression.html [new file with mode: 0755]
Source/WebCore/ChangeLog
Source/WebCore/rendering/AutoTableLayout.cpp