mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
Make the traits for the IDL interfaces take &self
This commit is contained in:
parent
856fda7f2e
commit
709d347872
99 changed files with 1192 additions and 1192 deletions
|
@ -28,14 +28,14 @@ impl Screen {
|
|||
}
|
||||
}
|
||||
|
||||
impl<'a> ScreenMethods for &'a Screen {
|
||||
impl ScreenMethods for Screen {
|
||||
// https://drafts.csswg.org/cssom-view/#dom-screen-colordepth
|
||||
fn ColorDepth(self) -> u32 {
|
||||
fn ColorDepth(&self) -> u32 {
|
||||
24
|
||||
}
|
||||
|
||||
// https://drafts.csswg.org/cssom-view/#dom-screen-pixeldepth
|
||||
fn PixelDepth(self) -> u32 {
|
||||
fn PixelDepth(&self) -> u32 {
|
||||
24
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue