Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 ec60c58
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/servo/layout/box_builder.rs
Expand Up @@ -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);
},
Expand Down

0 comments on commit ec60c58

Please sign in to comment.