Patch to layoutRows...
David Hyatt
hyatt@apple.com
Fri, 24 Jan 2003 15:25:03 -0800
...so that tables used as height spacers (that have an empty row/cell)
work. Tiny little patch to the top of layoutRows in render_table.cpp.
- if (toAdd && totalRows && rowPos[totalRows]) {
+ if (toAdd && totalRows && (rowPos[totalRows] || !nextSibling())) {
Test case:
<html>
<body>
Text
<table height=100 width=100% cellpadding=0 cellspacing=0>
<tr><td></td></table>
This text is 100 pixels lower than the previous line.
<table height=100 width=100% cellspacing=0
cellpadding=0><tr></tr></table>
This text is 100 pixels lower than the previous line.
<table height=100 width=100% cellspacing=0 cellpadding=0></table>
No space between this line and the previous line.
</body>
</html>
dave
(hyatt@apple.com)