diff options
author | bors-servo <metajack+bors@gmail.com> | 2014-10-17 12:15:23 -0600 |
---|---|---|
committer | bors-servo <metajack+bors@gmail.com> | 2014-10-17 12:15:23 -0600 |
commit | b86344b697f814b982e52f4a72c26d58c915c37b (patch) | |
tree | d240e46d1ae38d8a376d19d95256036aedc1266a /components/layout/layout_task.rs | |
parent | a1efb79cf43470271ea177d61426941c7f57caf1 (diff) | |
parent | 8496c056e7506dc370c8a2edc6f1e70811ba95c2 (diff) | |
download | servo-b86344b697f814b982e52f4a72c26d58c915c37b.tar.gz servo-b86344b697f814b982e52f4a72c26d58c915c37b.zip |
auto merge of #3706 : cgaebel/servo/fix-image-dynamic-remove, r=pcwalton
This also adds some extra debugging infrastructure which I found useful tracking
this bug down. A regression in the br reftests is also uncovered by this patch,
which I'll work on fixing next.
EDIT: nevermind. no regression, I just tested that before a rebase.
r? @pcwalton
Diffstat (limited to 'components/layout/layout_task.rs')
-rw-r--r-- | components/layout/layout_task.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/components/layout/layout_task.rs b/components/layout/layout_task.rs index c36ad0433f6..60b2a53938a 100644 --- a/components/layout/layout_task.rs +++ b/components/layout/layout_task.rs @@ -159,6 +159,7 @@ impl ImageResponder<UntrustedNodeAddress> for LayoutImageResponder { let f: proc(ImageResponseMsg, UntrustedNodeAddress):Send = proc(_, node_address) { let ScriptControlChan(chan) = script_chan; + debug!("Dirtying {:x}", node_address as uint); let mut nodes = SmallVec1::new(); nodes.vec_push(node_address); drop(chan.send_opt(SendEventMsg(id.clone(), ReflowEvent(nodes)))) @@ -675,6 +676,10 @@ impl LayoutTask { } }); + if self.opts.dump_flow_tree { + layout_root.dump(); + } + // Build the display list if necessary, and send it to the renderer. if data.goal == ReflowForDisplay { let writing_mode = flow::base(layout_root.deref()).writing_mode; |