Make tree pseudos not precomputed since they are not really anonymous boxes.

This commit is contained in:
Xidorn Quan 2017-10-20 14:08:36 +11:00
parent 4ce3dc7729
commit cd527733c5
4 changed files with 35 additions and 9 deletions

View file

@ -1983,13 +1983,8 @@ impl CascadeData {
let map = match selector.pseudo_element() {
Some(pseudo) if pseudo.is_precomputed() => {
if !selector.is_universal() ||
!matches!(origin, Origin::UserAgent) {
// ::-moz-tree selectors may appear in
// non-UA sheets (even though they never
// match).
continue;
}
debug_assert!(selector.is_universal());
debug_assert!(matches!(origin, Origin::UserAgent));
precomputed_pseudo_element_decls
.as_mut()