Testcase:

<div style="float: left; border: 1px solid red">
<fieldset style="width: 5px">
ThisLongTextIsHere
</fieldset>
</div>

<div style="clear: both">
<table style="width: 10px; margin: auto" border="1">
<tr><td>
ThisIsALongWordThisIsALongWordThisIsALongWordThisIsALongWord
</td></tr>
</table>
</div>

(probably not minimal, but reproduces the problem).

When I load this, I don't see the table's text, and it has a computed height of 0. I do have some local changes that affect the mComputedSize of tables, so I poked around, and found that in nsTableOuterFrame::Reflow we have:

(gdb) p reflowAllKids
$44 = 0
(gdb) p reflowCaption
$45 = 0
(gdb) p reflowInner
$46 = 0

(this is the reflow when we try not having a vertical scrollbar, and for my table this reflow can be completely optimized away since it's narrower than the viewport). But in this case we never set any of the members of aDesiredSize, except for setting width and height to 0...

David, I'm not sure whether you're actively working on this code, so I'm not touching it for now. Let me know, ok?

-Boris
_______________________________________________
dev-tech-layout mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-layout

Reply via email to