mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Don't panic on cells with both a rowspan and colspan in include_sizes_from_previous_rows
fixes #20162
This commit is contained in:
parent
6f2cd86b8e
commit
be12b90412
1 changed files with 10 additions and 1 deletions
|
@ -123,7 +123,16 @@ impl TableRowFlow {
|
|||
if *span == 1 {
|
||||
break;
|
||||
}
|
||||
let incoming = incoming_rowspan_data[*col];
|
||||
let incoming = if let Some(incoming) = incoming_rowspan_data.get(*col) {
|
||||
*incoming
|
||||
} else {
|
||||
// This happens when we have a cell with both rowspan and colspan
|
||||
// incoming_rowspan_data only records the data for the first column,
|
||||
// but that's ok because we only need to account for each spanning cell
|
||||
// once. So we skip ahead.
|
||||
*col += 1;
|
||||
continue;
|
||||
};
|
||||
*max_block_size = max(*max_block_size, incoming);
|
||||
*col += 1;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue