Split paint task messages from ScriptMsg

Refs: https://github.com/servo/servo/issues/8592
This commit is contained in:
Greg Guthe 2015-11-19 01:15:02 -05:00
parent 6ab205a97e
commit 7668fd0503
4 changed files with 50 additions and 15 deletions

View file

@ -294,7 +294,6 @@ pub enum ScriptMsg {
NewFavicon(Url),
/// Status message to be displayed in the chrome, eg. a link URL on mouseover.
NodeStatus(Option<String>),
PainterReady(PipelineId),
/// Notification that this iframe should be removed.
RemoveIFrame(PipelineId),
ScriptLoadedURLInIFrame(IframeLoadInfo),
@ -306,6 +305,13 @@ pub enum ScriptMsg {
ViewportConstrained(PipelineId, ViewportConstraints),
}
/// Messages from the paint task to the constellation.
#[derive(Deserialize, Serialize)]
pub enum PaintMsg {
Ready(PipelineId),
Failure(Failure),
}
#[derive(Clone, Eq, PartialEq, Deserialize, Serialize, Debug)]
pub enum AnimationState {
AnimationsPresent,