Skip to content
Permalink
Browse files
box_builder: Add logging for cases when BoxGenerator attaches a singl…
…eton box to root or block flow.
  • Loading branch information
Brian J. Burg committed Nov 19, 2012
1 parent e838b17 commit ec60c5827b9fa4b099f54fef4835029963c2c4cf
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/servo/layout/box_builder.rs
@@ -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);
},

0 comments on commit ec60c58

Please sign in to comment.