mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Remove get_
prefix on getters
Part of #6224 I certainly didn't remove all of them; I avoided `unsafe` areas and also `components/script`
This commit is contained in:
parent
c63fc4dc13
commit
435e551753
21 changed files with 62 additions and 70 deletions
|
@ -123,7 +123,7 @@ pub trait TLayoutNode {
|
|||
}
|
||||
}
|
||||
|
||||
fn get_renderer(&self) -> Option<Sender<CanvasMsg>> {
|
||||
fn renderer(&self) -> Option<Sender<CanvasMsg>> {
|
||||
unsafe {
|
||||
let canvas_element: Option<LayoutJS<HTMLCanvasElement>> =
|
||||
HTMLCanvasElementCast::to_layout_js(self.get_jsmanaged());
|
||||
|
@ -131,7 +131,7 @@ pub trait TLayoutNode {
|
|||
}
|
||||
}
|
||||
|
||||
fn get_canvas_width(&self) -> u32 {
|
||||
fn canvas_width(&self) -> u32 {
|
||||
unsafe {
|
||||
let canvas_element: Option<LayoutJS<HTMLCanvasElement>> =
|
||||
HTMLCanvasElementCast::to_layout_js(self.get_jsmanaged());
|
||||
|
@ -139,7 +139,7 @@ pub trait TLayoutNode {
|
|||
}
|
||||
}
|
||||
|
||||
fn get_canvas_height(&self) -> u32 {
|
||||
fn canvas_height(&self) -> u32 {
|
||||
unsafe {
|
||||
let canvas_element: Option<LayoutJS<HTMLCanvasElement>> =
|
||||
HTMLCanvasElementCast::to_layout_js(self.get_jsmanaged());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue