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
|
@ -208,7 +208,7 @@ impl HTMLLinkElement {
|
|||
}
|
||||
}
|
||||
|
||||
impl<'a> HTMLLinkElementMethods for &'a HTMLLinkElement {
|
||||
impl HTMLLinkElementMethods for HTMLLinkElement {
|
||||
make_url_getter!(Href);
|
||||
make_setter!(SetHref, "href");
|
||||
|
||||
|
@ -225,7 +225,7 @@ impl<'a> HTMLLinkElementMethods for &'a HTMLLinkElement {
|
|||
make_setter!(SetType, "type");
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/#dom-link-rellist
|
||||
fn RelList(self) -> Root<DOMTokenList> {
|
||||
fn RelList(&self) -> Root<DOMTokenList> {
|
||||
self.rel_list.or_init(|| {
|
||||
DOMTokenList::new(ElementCast::from_ref(self), &atom!("rel"))
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue