mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Remove unused code in assign_block_size_block_base
This code is unreachable because an earlier `if base(kid).flags.is_float()` check bails out of the loop before it can reach this block.
This commit is contained in:
parent
39271aa42d
commit
51850c7ab6
1 changed files with 2 additions and 6 deletions
|
@ -908,12 +908,8 @@ impl BlockFlow {
|
|||
}
|
||||
|
||||
// Lay the child out if this was an in-order traversal.
|
||||
let need_to_process_child_floats = if flow::base(kid).flags.is_float() {
|
||||
kid.place_float_if_applicable(layout_context);
|
||||
true
|
||||
} else {
|
||||
kid.assign_block_size_for_inorder_child_if_necessary(layout_context)
|
||||
};
|
||||
let need_to_process_child_floats =
|
||||
kid.assign_block_size_for_inorder_child_if_necessary(layout_context);
|
||||
|
||||
// Mark flows for layerization if necessary to handle painting order correctly.
|
||||
propagate_layer_flag_from_child(&mut layers_needed_for_descendants, kid);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue