diff options
author | Josh Matthews <josh@joshmatthews.net> | 2015-04-22 20:12:24 -0400 |
---|---|---|
committer | Josh Matthews <josh@joshmatthews.net> | 2015-05-11 13:41:52 -0400 |
commit | f3cdba6b8bbd51eedb05bdb4c21073f4fe41e9a8 (patch) | |
tree | 34d6c28793d6081e6214a45829198fedd06ed88c /components/script/layout_interface.rs | |
parent | 32a89c945593917f0d7d3c75231b920cf218f2b3 (diff) | |
download | servo-f3cdba6b8bbd51eedb05bdb4c21073f4fe41e9a8.tar.gz servo-f3cdba6b8bbd51eedb05bdb4c21073f4fe41e9a8.zip |
Make link elements fire a load event.
Diffstat (limited to 'components/script/layout_interface.rs')
-rw-r--r-- | components/script/layout_interface.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/components/script/layout_interface.rs b/components/script/layout_interface.rs index 22f11462db1..6fde5c4312f 100644 --- a/components/script/layout_interface.rs +++ b/components/script/layout_interface.rs @@ -15,6 +15,7 @@ use msg::constellation_msg::{PipelineExitType, WindowSizeData}; use net_traits::PendingAsyncLoad; use profile_traits::mem::{Reporter, ReportsChan}; use script_traits::{ScriptControlChan, OpaqueScriptLayoutChannel, UntrustedNodeAddress}; +use script_traits::StylesheetLoadResponder; use std::any::Any; use std::sync::mpsc::{channel, Receiver, Sender}; use style::animation::PropertyAnimation; @@ -31,7 +32,7 @@ pub enum Msg { AddStylesheet(Stylesheet, MediaQueryList), /// Adds the given stylesheet to the document. - LoadStylesheet(Url, MediaQueryList, PendingAsyncLoad), + LoadStylesheet(Url, MediaQueryList, PendingAsyncLoad, Box<StylesheetLoadResponder+Send>), /// Puts a document into quirks mode, causing the quirks mode stylesheet to be loaded. SetQuirksMode, |