mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Reduce channel cloning.
This commit is contained in:
parent
207be7d2e2
commit
897be5f6ee
13 changed files with 38 additions and 38 deletions
|
@ -66,7 +66,7 @@ impl HTMLStyleElement {
|
|||
sheet.set_media(Some(media));
|
||||
let sheet = Arc::new(sheet);
|
||||
|
||||
let LayoutChan(ref layout_chan) = win.layout_chan();
|
||||
let LayoutChan(ref layout_chan) = *win.layout_chan();
|
||||
layout_chan.send(Msg::AddStylesheet(sheet.clone())).unwrap();
|
||||
*self.stylesheet.borrow_mut() = Some(sheet);
|
||||
let doc = document_from_node(self);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue