mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Rustfmt and fix tidy on recent changes.
This commit is contained in:
parent
6eedebe2c8
commit
ed2e9ce482
16 changed files with 78 additions and 57 deletions
|
@ -332,17 +332,14 @@ where
|
|||
let host = shadow.host();
|
||||
let containing_shadow = host.containing_shadow();
|
||||
let part_rules = match containing_shadow {
|
||||
Some(shadow) => {
|
||||
shadow
|
||||
.style_data()
|
||||
.and_then(|data| data.part_rules(self.pseudo_element))
|
||||
},
|
||||
None => {
|
||||
self.stylist
|
||||
.cascade_data()
|
||||
.borrow_for_origin(Origin::Author)
|
||||
.part_rules(self.pseudo_element)
|
||||
}
|
||||
Some(shadow) => shadow
|
||||
.style_data()
|
||||
.and_then(|data| data.part_rules(self.pseudo_element)),
|
||||
None => self
|
||||
.stylist
|
||||
.cascade_data()
|
||||
.borrow_for_origin(Origin::Author)
|
||||
.part_rules(self.pseudo_element),
|
||||
};
|
||||
|
||||
// TODO(emilio): SameTreeAuthorNormal is a bit of a lie here, we may
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue