mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
improve spec compliance of window.close
This commit is contained in:
parent
f63284efc0
commit
2753e5efab
12 changed files with 123 additions and 39 deletions
|
@ -68,14 +68,10 @@ impl CompositorProxy {
|
|||
|
||||
/// Messages from the painting thread and the constellation thread to the compositor thread.
|
||||
pub enum Msg {
|
||||
/// Requests that the compositor shut down.
|
||||
Exit,
|
||||
|
||||
/// Informs the compositor that the constellation has completed shutdown.
|
||||
/// Required because the constellation can have pending calls to make
|
||||
/// (e.g. SetFrameTree) at the time that we send it an ExitMsg.
|
||||
ShutdownComplete,
|
||||
|
||||
/// Alerts the compositor that the given pipeline has changed whether it is running animations.
|
||||
ChangeRunningAnimationsState(PipelineId, AnimationState),
|
||||
/// Replaces the current frame tree, typically called during main frame navigation.
|
||||
|
@ -123,7 +119,6 @@ pub enum Msg {
|
|||
impl Debug for Msg {
|
||||
fn fmt(&self, f: &mut Formatter) -> Result<(), Error> {
|
||||
match *self {
|
||||
Msg::Exit => write!(f, "Exit"),
|
||||
Msg::ShutdownComplete => write!(f, "ShutdownComplete"),
|
||||
Msg::ChangeRunningAnimationsState(..) => write!(f, "ChangeRunningAnimationsState"),
|
||||
Msg::SetFrameTree(..) => write!(f, "SetFrameTree"),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue