Skip to content

Commit

Permalink
better debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
nikomatsakis committed May 5, 2012
1 parent 78a5cd7 commit 879a5c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/servo/layout/base.rs
Expand Up @@ -56,7 +56,6 @@ fn linked_box(n: node) -> @box {
}

fn linked_subtree(p: node) -> @box {
#debug["linked_subtree root=%?", p.rd() { |r| r.kind }];
let p_box = linked_box(p);
for ntree.each_child(p) { |c|
let c_box = linked_subtree(c);
Expand All @@ -75,7 +74,6 @@ fn reflow_block(root: @box, available_width: au) {
// - and recursively computes the bounds for each child

let k = root.node.rd() { |r| r.kind };
#debug["reflow_block root=%?", k];
alt k {
nk_img(size) {
root.bounds.size = size;
Expand All @@ -96,6 +94,8 @@ fn reflow_block(root: @box, available_width: au) {

root.bounds.size = {mut width: available_width, // FIXME
mut height: au(current_height)};

#debug["reflow_block root=%? size=%?", k, root.bounds];
}

#[cfg(test)]
Expand Down

0 comments on commit 879a5c0

Please sign in to comment.