mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Remove needless '&self mut' from VirtualMethods trait.
This commit is contained in:
parent
d8483d2365
commit
2aa1554b0c
13 changed files with 109 additions and 102 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue