mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-01-03 17:54:33 +03:00
Remove redundant code.
Remove workaround for crash caused by flawed table layout. Table layout is now fixed.
This commit is contained in:
parent
679c87e527
commit
b604881528
@ -336,7 +336,6 @@ void table_used_left_border_for_cell(struct box *cell)
|
||||
|
||||
if (cell->prev == NULL) {
|
||||
struct box *row;
|
||||
struct box *rowg;
|
||||
|
||||
/* Spanned from a previous row in current row group */
|
||||
for (row = cell->parent; row != NULL; row = row->prev) {
|
||||
@ -352,25 +351,6 @@ void table_used_left_border_for_cell(struct box *cell)
|
||||
break;
|
||||
}
|
||||
|
||||
for (rowg = cell->parent->parent;
|
||||
rowg != NULL && prev == NULL;
|
||||
rowg = rowg->prev) {
|
||||
/* Spanned from a previous row in
|
||||
* previous row group */
|
||||
for (row = rowg->last; row != NULL;
|
||||
row = row->prev) {
|
||||
for (prev = row->children;
|
||||
prev != NULL;
|
||||
prev = prev->next) {
|
||||
if (prev->start_column +
|
||||
prev->columns ==
|
||||
cell->
|
||||
start_column)
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
assert(prev != NULL);
|
||||
} else {
|
||||
prev = cell->prev;
|
||||
|
Loading…
Reference in New Issue
Block a user