mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +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
|
@ -30,39 +30,39 @@ impl Navigator {
|
|||
}
|
||||
}
|
||||
|
||||
impl<'a> NavigatorMethods for &'a Navigator {
|
||||
impl NavigatorMethods for Navigator {
|
||||
// https://html.spec.whatwg.org/multipage/#dom-navigator-product
|
||||
fn Product(self) -> DOMString {
|
||||
fn Product(&self) -> DOMString {
|
||||
navigatorinfo::Product()
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/#dom-navigator-taintenabled
|
||||
fn TaintEnabled(self) -> bool {
|
||||
fn TaintEnabled(&self) -> bool {
|
||||
navigatorinfo::TaintEnabled()
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/#dom-navigator-appname
|
||||
fn AppName(self) -> DOMString {
|
||||
fn AppName(&self) -> DOMString {
|
||||
navigatorinfo::AppName()
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/#dom-navigator-appcodename
|
||||
fn AppCodeName(self) -> DOMString {
|
||||
fn AppCodeName(&self) -> DOMString {
|
||||
navigatorinfo::AppCodeName()
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/#dom-navigator-platform
|
||||
fn Platform(self) -> DOMString {
|
||||
fn Platform(&self) -> DOMString {
|
||||
navigatorinfo::Platform()
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/#dom-navigator-useragent
|
||||
fn UserAgent(self) -> DOMString {
|
||||
fn UserAgent(&self) -> DOMString {
|
||||
navigatorinfo::UserAgent()
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/#dom-navigator-appversion
|
||||
fn AppVersion(self) -> DOMString {
|
||||
fn AppVersion(&self) -> DOMString {
|
||||
navigatorinfo::AppVersion()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue