aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmlstyleelement.rs
diff options
context:
space:
mode:
authorbors-servo <metajack+bors@gmail.com>2015-08-26 15:01:12 -0600
committerbors-servo <metajack+bors@gmail.com>2015-08-26 15:01:12 -0600
commit48945b0fc1b1f1bee77f6cb30ac10e17614ef283 (patch)
tree9dab2aee27ae876d8ac18f946c8c18a75f16868d /components/script/dom/htmlstyleelement.rs
parentfa5ad1c6b4faa2c43ff79e77962b94034a4f2bd0 (diff)
parent4678ec16bb7e3aa242f30d6a9d675d5aeaec7cf7 (diff)
downloadservo-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/htmlstyleelement.rs')
-rw-r--r--components/script/dom/htmlstyleelement.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/components/script/dom/htmlstyleelement.rs b/components/script/dom/htmlstyleelement.rs
index fb87535fa3a..a07b02d5eb2 100644
--- a/components/script/dom/htmlstyleelement.rs
+++ b/components/script/dom/htmlstyleelement.rs
@@ -82,9 +82,9 @@ impl<'a> StyleElementHelpers for &'a HTMLStyleElement {
}
}
-impl<'a> VirtualMethods for &'a HTMLStyleElement {
+impl VirtualMethods for HTMLStyleElement {
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)
}
@@ -92,7 +92,7 @@ impl<'a> VirtualMethods for &'a HTMLStyleElement {
if let Some(ref s) = self.super_type() {
s.children_changed(mutation);
}
- let node = NodeCast::from_ref(*self);
+ let node = NodeCast::from_ref(self);
if node.is_in_doc() {
self.parse_own_css();
}