aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/dom/htmlstyleelement.rs
diff options
context:
space:
mode:
authorTetsuharu OHZEKI <saneyuki.snyk@gmail.com>2014-06-06 23:17:50 +0900
committerTetsuharu OHZEKI <saneyuki.snyk@gmail.com>2014-06-07 00:58:43 +0900
commit2aa1554b0c36bce1b25028c6f2a0dfbf9abefeb0 (patch)
tree271325747727159b378846e5abdbde169f4151b6 /src/components/script/dom/htmlstyleelement.rs
parentd8483d2365b234ec32478eb836fe6019bead9265 (diff)
downloadservo-2aa1554b0c36bce1b25028c6f2a0dfbf9abefeb0.tar.gz
servo-2aa1554b0c36bce1b25028c6f2a0dfbf9abefeb0.zip
Remove needless '&self mut' from VirtualMethods trait.
Diffstat (limited to 'src/components/script/dom/htmlstyleelement.rs')
-rw-r--r--src/components/script/dom/htmlstyleelement.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/components/script/dom/htmlstyleelement.rs b/src/components/script/dom/htmlstyleelement.rs
index be26cd3c153..485a2990602 100644
--- a/src/components/script/dom/htmlstyleelement.rs
+++ b/src/components/script/dom/htmlstyleelement.rs
@@ -60,14 +60,14 @@ impl<'a> StyleElementHelpers for JSRef<'a, HTMLStyleElement> {
}
impl<'a> VirtualMethods for JSRef<'a, HTMLStyleElement> {
- fn super_type<'a>(&'a mut self) -> Option<&'a mut VirtualMethods:> {
- let htmlelement: &mut JSRef<HTMLElement> = HTMLElementCast::from_mut_ref(self);
- Some(htmlelement as &mut VirtualMethods:)
+ fn super_type<'a>(&'a self) -> Option<&'a VirtualMethods:> {
+ let htmlelement: &JSRef<HTMLElement> = HTMLElementCast::from_ref(self);
+ Some(htmlelement as &VirtualMethods:)
}
- fn child_inserted(&mut self, child: &JSRef<Node>) {
+ fn child_inserted(&self, child: &JSRef<Node>) {
match self.super_type() {
- Some(ref mut s) => s.child_inserted(child),
+ Some(ref s) => s.child_inserted(child),
_ => (),
}
self.parse_own_css();