style: Don't perform parent display-based style fixups on most pseudos.

This commit is contained in:
Cameron McCormack 2017-07-17 15:40:34 +08:00
parent b701d726f2
commit d4c507ce6d
3 changed files with 16 additions and 1 deletions

View file

@ -115,6 +115,13 @@ impl PseudoElement {
(self.flags() & structs::CSS_PSEUDO_ELEMENT_SUPPORTS_USER_ACTION_STATE) != 0
}
/// Whether this pseudo-element skips flex/grid container display-based
/// fixup.
#[inline]
pub fn skip_item_based_display_fixup(&self) -> bool {
(self.flags() & structs::CSS_PSEUDO_ELEMENT_IS_FLEX_OR_GRID_ITEM) == 0
}
/// Whether this pseudo-element is precomputed.
#[inline]
pub fn is_precomputed(&self) -> bool {