mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
box_builder: Add logging for cases when BoxGenerator attaches a singleton box to root or block flow.
This commit is contained in:
parent
e838b171b9
commit
ec60c5827b
1 changed files with 6 additions and 0 deletions
|
@ -127,11 +127,17 @@ impl BoxGenerator {
|
|||
},
|
||||
@BlockFlow(*) => {
|
||||
let new_box = builder.make_box(ctx, box_type, node, self.flow);
|
||||
debug!("BoxGenerator[f%d]: attaching box[b%d] to block flow (node: %s)",
|
||||
self.flow.d().id, new_box.d().id, node.debug_str());
|
||||
|
||||
assert self.flow.block().box.is_none();
|
||||
self.flow.block().box = Some(new_box);
|
||||
},
|
||||
@RootFlow(*) => {
|
||||
let new_box = builder.make_box(ctx, box_type, node, self.flow);
|
||||
debug!("BoxGenerator[f%d]: attaching box[b%d] to root flow (node: %s)",
|
||||
self.flow.d().id, new_box.d().id, node.debug_str());
|
||||
|
||||
assert self.flow.root().box.is_none();
|
||||
self.flow.root().box = Some(new_box);
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue