mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Reduce channel cloning.
This commit is contained in:
parent
207be7d2e2
commit
897be5f6ee
13 changed files with 38 additions and 38 deletions
|
@ -242,7 +242,7 @@ impl HTMLLinkElement {
|
|||
let document = document_from_node(self);
|
||||
match document.base_url().join(href) {
|
||||
Ok(url) => {
|
||||
let ConstellationChan(ref chan) = document.window().constellation_chan();
|
||||
let ConstellationChan(ref chan) = *document.window().constellation_chan();
|
||||
let event = ConstellationMsg::NewFavicon(url.clone());
|
||||
chan.send(event).unwrap();
|
||||
|
||||
|
@ -318,7 +318,7 @@ impl AsyncResponseListener for StylesheetContext {
|
|||
let document = document.r();
|
||||
|
||||
let win = window_from_node(elem);
|
||||
let LayoutChan(ref layout_chan) = win.r().layout_chan();
|
||||
let LayoutChan(ref layout_chan) = *win.layout_chan();
|
||||
layout_chan.send(Msg::AddStylesheet(sheet.clone())).unwrap();
|
||||
|
||||
*elem.stylesheet.borrow_mut() = Some(sheet);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue