Skip to content

Commit

Permalink
Assert that cells aren't floats
Browse files Browse the repository at this point in the history
  • Loading branch information
Manishearth committed Feb 27, 2018
1 parent 19974e3 commit 98e53db
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions components/layout/table_row.rs
Expand Up @@ -150,11 +150,10 @@ impl TableRowFlow {
incoming_rowspan_data, &mut max_block_size,
&mut largest_leftover_incoming_size);
kid.place_float_if_applicable();
if !kid.base().flags.is_float() {
kid.assign_block_size_for_inorder_child_if_necessary(layout_context,
thread_id,
content_box);
}
debug_assert!(!kid.base().flags.is_float(), "table cells should never float");
kid.assign_block_size_for_inorder_child_if_necessary(layout_context,
thread_id,
content_box);

let row_span;
let column_span;
Expand Down

0 comments on commit 98e53db

Please sign in to comment.