layout: Implement flow tree dumping with RUST_LOG=debug is on.

r? @pcwalton
This commit is contained in:
Clark Gaebel 2014-10-28 10:14:12 -07:00
parent 9e94ecf99c
commit a8f80b89f4
5 changed files with 29 additions and 10 deletions

View file

@ -30,6 +30,7 @@ use gfx::render_task::{RenderInitMsg, RenderChan, RenderLayer};
use gfx::{render_task, color};
use layout_traits;
use layout_traits::{LayoutControlMsg, LayoutTaskFactory};
use log;
use script::dom::bindings::js::JS;
use script::dom::node::{ElementNodeTypeId, LayoutDataRef, Node};
use script::dom::element::{HTMLBodyElementTypeId, HTMLHtmlElementTypeId};
@ -566,7 +567,9 @@ impl LayoutTask {
debug!("layout: received layout request for: {:s}", data.url.serialize());
debug!("layout: parsed Node tree");
debug!("{:?}", node.dump());
if log_enabled!(log::DEBUG) {
node.dump();
}
let mut rw_data = self.lock_rw_data(possibly_locked_rw_data);