diff options
Diffstat (limited to 'components/script/dom/node.rs')
-rw-r--r-- | components/script/dom/node.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/components/script/dom/node.rs b/components/script/dom/node.rs index 53a3f355b9d..ec370dff293 100644 --- a/components/script/dom/node.rs +++ b/components/script/dom/node.rs @@ -192,7 +192,9 @@ impl Node { debug_assert!(thread_state::get().is_script()); let win = window_from_node(self); self.style_and_layout_data.set(None); - win.layout_chan().send(Msg::ReapStyleAndLayoutData(data)).unwrap(); + if win.layout_chan().send(Msg::ReapStyleAndLayoutData(data)).is_err() { + warn!("layout thread unreachable - leaking layout data"); + } } /// Adds a new child to the end of this node's list of children. |