style: Other miscellaneous cleanup.

This commit is contained in:
Emilio Cobos Álvarez 2018-02-24 22:10:25 +01:00
parent 23d9462d23
commit e77dd773d8
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
3 changed files with 185 additions and 169 deletions

View file

@ -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)