[project @ 2003-08-29 12:56:06 by bursa]

Fix table layout bug (news.google.co.uk).

svn path=/import/netsurf/; revision=258
This commit is contained in:
James Bursa 2003-08-29 12:56:06 +00:00
parent 094b65cd0d
commit be34d32e46
2 changed files with 0 additions and 15 deletions

View File

@ -1208,14 +1208,6 @@ void box_normalise_table_row(struct box *row,
if ((*row_span)[i] != 0)
(*row_span)[i]--;
/* if all columns have a rowspan, shrink it to the lowest equivalent */
min = (*row_span)[0];
for (i = 1; i != *table_columns; i++)
if ((*row_span)[i] < min)
min = (*row_span)[i];
for (i = 0; i != *table_columns; i++)
(*row_span)[i] -= min;
if (row->children == 0) {
LOG(("row->children == 0, removing"));
if (row->prev == 0)

View File

@ -712,13 +712,6 @@ void layout_table(struct box * table, unsigned long width, struct box * cont,
row_span[i]--;
else
row_span_cell[i] = 0;
/* if all columns have a row span, shrink it to the lowest equivalent */
min = row_span[0];
for (i = 1; i != columns; i++)
if (row_span[i] < min)
min = row_span[i];
for (i = 0; i != columns; i++)
row_span[i] -= min;
/* row height is greatest excess of a cell which ends in this row */
for (i = 0; i != columns; i++)
if (row_span[i] == 0 && row_height < excess_y[i])