mirror of
https://github.com/servo/servo.git
synced 2025-07-23 15:23:42 +01:00
Make link elements fire a load event.
This commit is contained in:
parent
32a89c9455
commit
f3cdba6b8b
8 changed files with 78 additions and 10 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue