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) {
let style = cur_node.style();
// DEBUG
let n_str = fmt!("%?", cur_node.read(|n| copy n.kind ));
debug!("Considering node: %?", n_str);
debug!("Considering node: %?", fmt!("%?", cur_node.read(|n| copy n.kind )));
// TODO: remove this once UA styles work
// TODO: handle interactions with 'float', 'position' (CSS 2.1, Section 9.7)