mirror of
https://github.com/servo/servo.git
synced 2025-10-07 12:09:23 +01:00
Remove needless '&mut self' from WindowMethods.
This commit is contained in:
parent
a90f1e3773
commit
884346030c
2 changed files with 10 additions and 10 deletions
|
@ -326,7 +326,7 @@ pub trait DocumentMethods {
|
|||
fn Scripts(&self) -> Temporary<HTMLCollection>;
|
||||
fn Anchors(&self) -> Temporary<HTMLCollection>;
|
||||
fn Applets(&self) -> Temporary<HTMLCollection>;
|
||||
fn Location(&mut self) -> Temporary<Location>;
|
||||
fn Location(&self) -> Temporary<Location>;
|
||||
fn Children(&self) -> Temporary<HTMLCollection>;
|
||||
fn GetOnload(&self) -> Option<EventHandlerNonNull>;
|
||||
fn SetOnload(&mut self, listener: Option<EventHandlerNonNull>);
|
||||
|
@ -800,7 +800,7 @@ impl<'a> DocumentMethods for JSRef<'a, Document> {
|
|||
HTMLCollection::create(&*window, NodeCast::from_ref(self), filter)
|
||||
}
|
||||
|
||||
fn Location(&mut self) -> Temporary<Location> {
|
||||
fn Location(&self) -> Temporary<Location> {
|
||||
let mut window = self.window.root();
|
||||
window.Location()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue