diff options
author | Xidorn Quan <me@upsuper.org> | 2017-10-20 14:08:36 +1100 |
---|---|---|
committer | Xidorn Quan <me@upsuper.org> | 2017-10-20 14:08:36 +1100 |
commit | cd527733c5942d27f3ced8db8646b541868aeee3 (patch) | |
tree | 8f1c1e91cce79dac70cd09a5734affbdc02ad28e /components/style/gecko/generated/pseudo_element_definition.rs | |
parent | 4ce3dc77297c00c9fb0c18c7f358a25def850095 (diff) | |
download | servo-cd527733c5942d27f3ced8db8646b541868aeee3.tar.gz servo-cd527733c5942d27f3ced8db8646b541868aeee3.zip |
Make tree pseudos not precomputed since they are not really anonymous boxes.
Diffstat (limited to 'components/style/gecko/generated/pseudo_element_definition.rs')
-rw-r--r-- | components/style/gecko/generated/pseudo_element_definition.rs | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/components/style/gecko/generated/pseudo_element_definition.rs b/components/style/gecko/generated/pseudo_element_definition.rs index fa715d94290..3071e140b2c 100644 --- a/components/style/gecko/generated/pseudo_element_definition.rs +++ b/components/style/gecko/generated/pseudo_element_definition.rs @@ -546,6 +546,26 @@ impl PseudoElement { PseudoElement::Before | PseudoElement::After | PseudoElement::FirstLine | PseudoElement::FirstLetter) } + /// Whether this pseudo-element is tree pseudo-element. + #[inline] + pub fn is_tree_pseudo_element(&self) -> bool { + match *self { + PseudoElement::MozTreeColumn(..) => true, + PseudoElement::MozTreeRow(..) => true, + PseudoElement::MozTreeSeparator(..) => true, + PseudoElement::MozTreeCell(..) => true, + PseudoElement::MozTreeIndentation(..) => true, + PseudoElement::MozTreeLine(..) => true, + PseudoElement::MozTreeTwisty(..) => true, + PseudoElement::MozTreeImage(..) => true, + PseudoElement::MozTreeCellText(..) => true, + PseudoElement::MozTreeCheckbox(..) => true, + PseudoElement::MozTreeProgressmeter(..) => true, + PseudoElement::MozTreeDropFeedback(..) => true, + _ => false, + } + } + /// Gets the flags associated to this pseudo-element, or 0 if it's an /// anonymous box. pub fn flags(&self) -> u32 { |