layout: Only serialize boxes in debug mode

This commit is contained in:
Patrick Walton 2012-10-12 14:58:01 -07:00
parent 88645b67a1
commit 356e4dee21

View file

@ -44,8 +44,7 @@ impl LayoutTreeBuilder {
fn construct_recursively(layout_ctx: &LayoutContext, cur_node: Node, parent_ctx: &BuilderContext) { fn construct_recursively(layout_ctx: &LayoutContext, cur_node: Node, parent_ctx: &BuilderContext) {
let style = cur_node.style(); let style = cur_node.style();
// DEBUG // DEBUG
let n_str = fmt!("%?", cur_node.read(|n| copy n.kind )); debug!("Considering node: %?", fmt!("%?", cur_node.read(|n| copy n.kind )));
debug!("Considering node: %?", n_str);
// TODO: remove this once UA styles work // TODO: remove this once UA styles work
// TODO: handle interactions with 'float', 'position' (CSS 2.1, Section 9.7) // TODO: handle interactions with 'float', 'position' (CSS 2.1, Section 9.7)
@ -261,4 +260,4 @@ impl LayoutTreeBuilder {
} }
} }
} }
} }