mirror of
https://github.com/servo/servo.git
synced 2025-07-24 07:40:27 +01:00
Remove the LayoutChan type.
It is a pointless abstraction.
This commit is contained in:
parent
2f9796fa69
commit
e94f3d4fe0
8 changed files with 26 additions and 45 deletions
|
@ -14,7 +14,7 @@ use dom::element::Element;
|
|||
use dom::htmlelement::HTMLElement;
|
||||
use dom::node::{ChildrenMutation, Node, document_from_node, window_from_node};
|
||||
use dom::virtualmethods::VirtualMethods;
|
||||
use layout_interface::{LayoutChan, Msg};
|
||||
use layout_interface::Msg;
|
||||
use std::sync::Arc;
|
||||
use string_cache::Atom;
|
||||
use style::media_queries::parse_media_query_list;
|
||||
|
@ -68,8 +68,7 @@ impl HTMLStyleElement {
|
|||
sheet.set_media(Some(media));
|
||||
let sheet = Arc::new(sheet);
|
||||
|
||||
let LayoutChan(ref layout_chan) = *win.layout_chan();
|
||||
layout_chan.send(Msg::AddStylesheet(sheet.clone())).unwrap();
|
||||
win.layout_chan().send(Msg::AddStylesheet(sheet.clone())).unwrap();
|
||||
*self.stylesheet.borrow_mut() = Some(sheet);
|
||||
let doc = document_from_node(self);
|
||||
doc.r().invalidate_stylesheets();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue