mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Fix incorrect comment in BlockFlow.
The behavior of this code was changed in #3631. The parent no longer sets the inline size to a temporary value.
This commit is contained in:
parent
efb7f5cd91
commit
e2c0f4906e
1 changed files with 3 additions and 2 deletions
|
@ -1232,8 +1232,9 @@ impl BlockFlow {
|
|||
self.base.restyle_damage.remove(REFLOW_OUT_OF_FLOW | REFLOW);
|
||||
}
|
||||
|
||||
// Our inline-size was set to the inline-size of the containing block by the flow's parent.
|
||||
// This computes the real value, and is run in the `AssignISizes` traversal.
|
||||
/// Compute inline size based using the `block_container_inline_size` set by the parent flow.
|
||||
///
|
||||
/// This is run in the `AssignISizes` traversal.
|
||||
pub fn propagate_and_compute_used_inline_size(&mut self, layout_context: &LayoutContext) {
|
||||
let containing_block_inline_size = self.base.block_container_inline_size;
|
||||
self.compute_used_inline_size(layout_context, containing_block_inline_size);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue