mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
layout: Only serialize boxes in debug mode
This commit is contained in:
parent
88645b67a1
commit
356e4dee21
1 changed files with 2 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue