mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Remove needless '&mut self' from DocumentMethods.
This commit is contained in:
parent
884346030c
commit
dc0164071e
1 changed files with 2 additions and 2 deletions
|
@ -291,7 +291,7 @@ impl<'a> PrivateDocumentHelpers for JSRef<'a, Document> {
|
|||
}
|
||||
|
||||
pub trait DocumentMethods {
|
||||
fn Implementation(&mut self) -> Temporary<DOMImplementation>;
|
||||
fn Implementation(&self) -> Temporary<DOMImplementation>;
|
||||
fn URL(&self) -> DOMString;
|
||||
fn DocumentURI(&self) -> DOMString;
|
||||
fn CompatMode(&self) -> DOMString;
|
||||
|
@ -334,7 +334,7 @@ pub trait DocumentMethods {
|
|||
|
||||
impl<'a> DocumentMethods for JSRef<'a, Document> {
|
||||
// http://dom.spec.whatwg.org/#dom-document-implementation
|
||||
fn Implementation(&mut self) -> Temporary<DOMImplementation> {
|
||||
fn Implementation(&self) -> Temporary<DOMImplementation> {
|
||||
if self.implementation.get().is_none() {
|
||||
let window = self.window.root();
|
||||
self.implementation.assign(Some(DOMImplementation::new(&*window)));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue