aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmlstyleelement.rs
diff options
context:
space:
mode:
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();
}