aboutsummaryrefslogtreecommitdiffstats
path: root/components/compositing/compositor_layer.rs
diff options
context:
space:
mode:
authorCorey Farwell <coreyf@rwell.org>2015-05-31 12:45:04 -0400
committerCorey Farwell <coreyf@rwell.org>2015-06-02 08:54:44 -0400
commit435e551753c1d693ed6dc69238fc466896ed48e4 (patch)
tree2ab9c3a1e82016472cbb8a47971ad40a2dd68869 /components/compositing/compositor_layer.rs
parentc63fc4dc13a23cf5b9f8c0972111b3f9436d2143 (diff)
downloadservo-435e551753c1d693ed6dc69238fc466896ed48e4.tar.gz
servo-435e551753c1d693ed6dc69238fc466896ed48e4.zip
Remove `get_` prefix on getters
Part of #6224 I certainly didn't remove all of them; I avoided `unsafe` areas and also `components/script`
Diffstat (limited to 'components/compositing/compositor_layer.rs')
-rw-r--r--components/compositing/compositor_layer.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/components/compositing/compositor_layer.rs b/components/compositing/compositor_layer.rs
index 0a37340c4f9..240923410ad 100644
--- a/components/compositing/compositor_layer.rs
+++ b/components/compositing/compositor_layer.rs
@@ -141,7 +141,7 @@ pub trait CompositorLayer {
fn wants_scroll_events(&self) -> WantsScrollEventsFlag;
/// Return the pipeline id associated with this layer.
- fn get_pipeline_id(&self) -> PipelineId;
+ fn pipeline_id(&self) -> PipelineId;
}
#[derive(Copy, PartialEq, Clone)]
@@ -225,7 +225,7 @@ impl CompositorLayer for Layer<CompositorData> {
let unused_buffers = self.collect_unused_buffers();
if !unused_buffers.is_empty() { // send back unused buffers
- let pipeline = compositor.get_pipeline(self.get_pipeline_id());
+ let pipeline = compositor.get_pipeline(self.pipeline_id());
let _ = pipeline.paint_chan.send(PaintMsg::UnusedBuffer(unused_buffers));
}
}
@@ -241,7 +241,7 @@ impl CompositorLayer for Layer<CompositorData> {
buffer.mark_wont_leak()
}
- let pipeline = compositor.get_pipeline(self.get_pipeline_id());
+ let pipeline = compositor.get_pipeline(self.pipeline_id());
let _ = pipeline.paint_chan.send(PaintMsg::UnusedBuffer(buffers));
}
}
@@ -370,7 +370,7 @@ impl CompositorLayer for Layer<CompositorData> {
MouseUpEvent(button, event_point),
};
- let pipeline = compositor.get_pipeline(self.get_pipeline_id());
+ let pipeline = compositor.get_pipeline(self.pipeline_id());
let ScriptControlChan(ref chan) = pipeline.script_chan;
let _ = chan.send(ConstellationControlMsg::SendEvent(pipeline.id.clone(), message));
}
@@ -380,7 +380,7 @@ impl CompositorLayer for Layer<CompositorData> {
cursor: TypedPoint2D<LayerPixel, f32>)
where Window: WindowMethods {
let message = MouseMoveEvent(cursor.to_untyped());
- let pipeline = compositor.get_pipeline(self.get_pipeline_id());
+ let pipeline = compositor.get_pipeline(self.pipeline_id());
let ScriptControlChan(ref chan) = pipeline.script_chan;
let _ = chan.send(ConstellationControlMsg::SendEvent(pipeline.id.clone(), message));
}
@@ -409,7 +409,7 @@ impl CompositorLayer for Layer<CompositorData> {
self.extra_data.borrow().wants_scroll_events
}
- fn get_pipeline_id(&self) -> PipelineId {
+ fn pipeline_id(&self) -> PipelineId {
self.extra_data.borrow().pipeline_id
}
}