aboutsummaryrefslogtreecommitdiffstats
path: root/components/style/gecko/pseudo_element.rs
diff options
context:
space:
mode:
authorXidorn Quan <me@upsuper.org>2017-10-20 14:08:36 +1100
committerXidorn Quan <me@upsuper.org>2017-10-20 14:08:36 +1100
commitcd527733c5942d27f3ced8db8646b541868aeee3 (patch)
tree8f1c1e91cce79dac70cd09a5734affbdc02ad28e /components/style/gecko/pseudo_element.rs
parent4ce3dc77297c00c9fb0c18c7f358a25def850095 (diff)
downloadservo-cd527733c5942d27f3ced8db8646b541868aeee3.tar.gz
servo-cd527733c5942d27f3ced8db8646b541868aeee3.zip
Make tree pseudos not precomputed since they are not really anonymous boxes.
Diffstat (limited to 'components/style/gecko/pseudo_element.rs')
-rw-r--r--components/style/gecko/pseudo_element.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/style/gecko/pseudo_element.rs b/components/style/gecko/pseudo_element.rs
index fba462171f7..ac18522ce43 100644
--- a/components/style/gecko/pseudo_element.rs
+++ b/components/style/gecko/pseudo_element.rs
@@ -46,7 +46,7 @@ impl PseudoElement {
return PseudoElementCascadeType::Eager
}
- if self.is_anon_box() {
+ if self.is_precomputed() {
return PseudoElementCascadeType::Precomputed
}
@@ -137,7 +137,7 @@ impl PseudoElement {
/// Whether this pseudo-element is precomputed.
#[inline]
pub fn is_precomputed(&self) -> bool {
- self.is_anon_box()
+ self.is_anon_box() && !self.is_tree_pseudo_element()
}
/// Covert non-canonical pseudo-element to canonical one, and keep a