Layout 2020: Fix issues with float implementation documentation

Fix some rustdoc comments which won't process properly unless they start
with three '/' characters. In addition, improve the name of a function
and add some missing documentation.
This commit is contained in:
Martin Robinson 2023-06-14 17:09:56 +02:00
parent f8235ab3fb
commit 3b3dc4adbe
No known key found for this signature in database
GPG key ID: D56AA4FA55EFE6F8
2 changed files with 64 additions and 60 deletions

View file

@ -523,8 +523,9 @@ fn layout_in_flow_non_replaced_block_level(
inline_start,
inline_end: inline_start + inline_size,
};
parent_containing_block_position_info =
Some(sequential_layout_state.update_all_containing_block_offsets(new_cb_offsets));
parent_containing_block_position_info = Some(
sequential_layout_state.replace_containing_block_position_info(new_cb_offsets),
);
},
};
@ -595,7 +596,7 @@ fn layout_in_flow_non_replaced_block_level(
// Now that we're done laying out our children, we can restore the
// parent's containing block position information.
sequential_layout_state
.update_all_containing_block_offsets(parent_containing_block_position_info.unwrap());
.replace_containing_block_position_info(parent_containing_block_position_info.unwrap());
// Account for padding and border. We also might have to readjust the
// `bfc_relative_block_position` if it was different from the content size (i.e. was