mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
style: Other miscellaneous cleanup.
This commit is contained in:
parent
23d9462d23
commit
e77dd773d8
3 changed files with 185 additions and 169 deletions
|
@ -1329,10 +1329,10 @@ impl<'le> TElement for GeckoElement<'le> {
|
|||
if !pseudo.is_before_or_after() {
|
||||
return false;
|
||||
}
|
||||
return self.parent_element()
|
||||
.map_or(false, |p| {
|
||||
p.as_node()
|
||||
.get_bool_flag(nsINode_BooleanFlag::ElementHasAnimations)
|
||||
// FIXME(emilio): When would the parent of a ::before / ::after
|
||||
// pseudo-element be null?
|
||||
return self.parent_element().map_or(false, |p| {
|
||||
p.as_node().get_bool_flag(nsINode_BooleanFlag::ElementHasAnimations)
|
||||
});
|
||||
}
|
||||
self.as_node().get_bool_flag(nsINode_BooleanFlag::ElementHasAnimations)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue