mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
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:
parent
f8235ab3fb
commit
3b3dc4adbe
2 changed files with 64 additions and 60 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue