<rdar://problem/7972529> Images with percentage based height/max-height are missing...
authormitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 2 May 2011 18:50:41 +0000 (18:50 +0000)
committermitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 2 May 2011 18:50:41 +0000 (18:50 +0000)
commit521dcb8f33e98f0c4c212eec36d3a4b0cf811d4a
treeb6f2aeb4985469aaa4658c60a1e8c0a2fd303bca
parentdec3276daa5b69eafdb34ce7ea0237536a353964
<rdar://problem/7972529> Images with percentage based height/max-height are missing when they are inside blocks inside tables
https://bugs.webkit.org/show_bug.cgi?id=58006

Reviewed by Simon Fraser.

Source/WebCore:

* rendering/RenderBox.cpp:
(WebCore::RenderBox::computeReplacedLogicalHeightUsing): Expanded the scope of the fix for
<http://webkit.org/b/15359> from r29039 to cover not just the case of a auto-or-percent-height
table cell as the immediate containing block, but any case where all containing block ancestors
up to and including a table cell are auto-or-percent height.

LayoutTests:

* fast/replaced/table-percent-height-expected.txt: Updated.
* fast/replaced/table-percent-height.html: Added a test case with a replaced object nested in an
auto-height block inside a table cell.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@85499 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/replaced/table-percent-height-expected.txt
LayoutTests/fast/replaced/table-percent-height.html
Source/WebCore/ChangeLog
Source/WebCore/rendering/RenderBox.cpp