mirror of
https://github.com/servo/servo.git
synced 2025-08-14 09:55:35 +01:00
style: Simplify "prohibit display: contents" adjustment.
On top of #19661. The NAC condition is pointless because NAC don't match author rules unless they are a pseudo-element too.
This commit is contained in:
parent
563da3a19c
commit
a747de1814
4 changed files with 11 additions and 22 deletions
|
@ -566,9 +566,10 @@ where
|
|||
}
|
||||
cascade_flags.insert(CascadeFlags::VISITED_DEPENDENT_ONLY);
|
||||
}
|
||||
if self.element.is_native_anonymous() || pseudo.is_some() {
|
||||
cascade_flags.insert(CascadeFlags::PROHIBIT_DISPLAY_CONTENTS);
|
||||
} else if self.element.is_root() {
|
||||
if !self.element.is_native_anonymous() &&
|
||||
pseudo.is_none() &&
|
||||
self.element.is_root()
|
||||
{
|
||||
cascade_flags.insert(CascadeFlags::IS_ROOT_ELEMENT);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue