mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Make tree pseudos not precomputed since they are not really anonymous boxes.
This commit is contained in:
parent
4ce3dc7729
commit
cd527733c5
4 changed files with 35 additions and 9 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue