Make link elements fire a load event.

This commit is contained in:
Josh Matthews 2015-04-22 20:12:24 -04:00
parent 32a89c9455
commit f3cdba6b8b
8 changed files with 78 additions and 10 deletions

View file

@ -56,6 +56,10 @@ pub struct NewLayoutInfo {
pub load_data: LoadData,
}
pub trait StylesheetLoadResponder {
fn respond(self: Box<Self>);
}
/// Messages sent from the constellation to the script task
pub enum ConstellationControlMsg {
/// Gives a channel and ID to a layout task, as well as the ID of that layout's parent
@ -91,7 +95,7 @@ pub enum ConstellationControlMsg {
/// Notifies script task that all animations are done
TickAllAnimations(PipelineId),
/// Notifies script that a stylesheet has finished loading.
StylesheetLoadComplete(PipelineId, Url),
StylesheetLoadComplete(PipelineId, Url, Box<StylesheetLoadResponder+Send>),
}
/// The mouse button involved in the event.