diff options
author | bors-servo <metajack+bors@gmail.com> | 2015-08-26 15:01:12 -0600 |
---|---|---|
committer | bors-servo <metajack+bors@gmail.com> | 2015-08-26 15:01:12 -0600 |
commit | 48945b0fc1b1f1bee77f6cb30ac10e17614ef283 (patch) | |
tree | 9dab2aee27ae876d8ac18f946c8c18a75f16868d /components/script/dom/htmlimageelement.rs | |
parent | fa5ad1c6b4faa2c43ff79e77962b94034a4f2bd0 (diff) | |
parent | 4678ec16bb7e3aa242f30d6a9d675d5aeaec7cf7 (diff) | |
download | servo-48945b0fc1b1f1bee77f6cb30ac10e17614ef283.tar.gz servo-48945b0fc1b1f1bee77f6cb30ac10e17614ef283.zip |
Auto merge of #7397 - Manishearth:doublepointer-meet-fire, r=nox
Remove doublepointer in VirtualMethods, and from_borrowed_ref
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7397)
<!-- Reviewable:end -->
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))); }, |