REGRESION(r130774): preferred width of tables does not take max-width into account
authorojan@chromium.org <ojan@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 22 Jan 2013 23:28:02 +0000 (23:28 +0000)
committerojan@chromium.org <ojan@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 22 Jan 2013 23:28:02 +0000 (23:28 +0000)
commitbb75ef61b4d6fcd4fc9415964152b60029059d60
treef4ed88a36c6198ed12d2d72baa0383e07e5432f6
parentc95b6650d7dd2ecfae9ee522a0ee652bc76069f6
REGRESION(r130774): preferred width of tables does not take max-width into account
https://bugs.webkit.org/show_bug.cgi?id=107576

Reviewed by Tony Chang.

Source/WebCore:

Constrain preferred widths by min/max the way we do in other
RenderBlock subclasses. Eventually, we'll shared the code with
RenderBlock, but this is an incremental step in that direction
that we can safely merge into release branches.

Test: fast/table/min-max-width-preferred-size.html

* rendering/RenderTable.cpp:
(WebCore::RenderTable::computePreferredLogicalWidths):

LayoutTests:

* fast/table/min-max-width-preferred-size-expected.txt: Added.
* fast/table/min-max-width-preferred-size.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@140479 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/table/min-max-width-preferred-size-expected.txt [new file with mode: 0644]
LayoutTests/fast/table/min-max-width-preferred-size.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/rendering/RenderTable.cpp