From a0cba833b0c0715634f9c354facbbfa5ff56afaa Mon Sep 17 00:00:00 2001 From: Martin Robinson Date: Mon, 5 Jan 2015 15:56:47 -0800 Subject: [PATCH] Small namespaced enum cleanup in Pipeline Use namespaced enums everywhere in Pipeline for the sake of consistency. --- components/compositing/pipeline.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/components/compositing/pipeline.rs b/components/compositing/pipeline.rs index 8c22d7c9ea49..5d7b86a73148 100644 --- a/components/compositing/pipeline.rs +++ b/components/compositing/pipeline.rs @@ -9,7 +9,6 @@ use script_traits::{NewLayoutInfo, ConstellationControlMsg}; use devtools_traits::DevtoolsControlChan; use gfx::paint_task::Msg as PaintMsg; -use gfx::paint_task::{PaintPermissionGranted, PaintPermissionRevoked}; use gfx::paint_task::{PaintChan, PaintTask}; use servo_msg::constellation_msg::{ConstellationChan, Failure, PipelineId, SubpageId}; use servo_msg::constellation_msg::{LoadData, WindowSizeData, PipelineExitType}; @@ -166,12 +165,12 @@ impl Pipeline { } pub fn grant_paint_permission(&self) { - let _ = self.paint_chan.send_opt(PaintPermissionGranted); + let _ = self.paint_chan.send_opt(PaintMsg::PaintPermissionGranted); } pub fn revoke_paint_permission(&self) { debug!("pipeline revoking paint channel paint permission"); - let _ = self.paint_chan.send_opt(PaintPermissionRevoked); + let _ = self.paint_chan.send_opt(PaintMsg::PaintPermissionRevoked); } pub fn exit(&self, exit_type: PipelineExitType) {