mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +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
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue