diff options
Diffstat (limited to 'components/script/dom/htmlimageelement.rs')
-rw-r--r-- | components/script/dom/htmlimageelement.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/components/script/dom/htmlimageelement.rs b/components/script/dom/htmlimageelement.rs index 88a73907324..5ddc2f85482 100644 --- a/components/script/dom/htmlimageelement.rs +++ b/components/script/dom/htmlimageelement.rs @@ -304,9 +304,9 @@ impl<'a> HTMLImageElementMethods for &'a HTMLImageElement { make_setter!(SetBorder, "border"); } -impl<'a> VirtualMethods for &'a HTMLImageElement { +impl VirtualMethods for HTMLImageElement { fn super_type<'b>(&'b self) -> Option<&'b VirtualMethods> { - let htmlelement: &&HTMLElement = HTMLElementCast::from_borrowed_ref(self); + let htmlelement: &HTMLElement = HTMLElementCast::from_ref(self); Some(htmlelement as &VirtualMethods) } @@ -317,7 +317,7 @@ impl<'a> VirtualMethods for &'a HTMLImageElement { match attr.local_name() { &atom!("src") => { - let window = window_from_node(*self); + let window = window_from_node(self); let url = window.r().get_url(); self.update_image(Some(((**attr.value()).to_owned(), &url))); }, |