Skip to content

Commit

Permalink
Move the pipeline.notify_visibility() call to Pipeline::new().
Browse files Browse the repository at this point in the history
  • Loading branch information
Ms2ger committed Nov 30, 2016
1 parent 14459e2 commit 2677540
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions components/constellation/pipeline.rs
Expand Up @@ -253,8 +253,6 @@ impl Pipeline {
state.window_size,
state.prev_visibility.unwrap_or(true));

pipeline.notify_visibility();

Ok((pipeline, child_process))
}

Expand All @@ -269,7 +267,7 @@ impl Pipeline {
size: Option<TypedSize2D<f32, PagePx>>,
visible: bool)
-> Pipeline {
Pipeline {
let pipeline = Pipeline {
id: id,
frame_id: frame_id,
parent_info: parent_info,
Expand All @@ -283,7 +281,11 @@ impl Pipeline {
running_animations: false,
visible: visible,
is_private: is_private,
}
};

pipeline.notify_visibility();

pipeline
}

pub fn exit(&self) {
Expand Down

0 comments on commit 2677540

Please sign in to comment.