mirror of
https://github.com/servo/servo.git
synced 2025-08-15 02:15:33 +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
|
@ -3626,18 +3626,10 @@ pub extern "C" fn Servo_ReparentStyle(
|
|||
if let Some(element) = element {
|
||||
if element.is_link() {
|
||||
cascade_flags.insert(CascadeFlags::IS_LINK);
|
||||
if element.is_visited_link() &&
|
||||
doc_data.visited_styles_enabled() {
|
||||
if element.is_visited_link() && doc_data.visited_styles_enabled() {
|
||||
cascade_flags.insert(CascadeFlags::IS_VISITED_LINK);
|
||||
}
|
||||
};
|
||||
|
||||
if element.is_native_anonymous() {
|
||||
cascade_flags.insert(CascadeFlags::PROHIBIT_DISPLAY_CONTENTS);
|
||||
}
|
||||
}
|
||||
if pseudo.is_some() {
|
||||
cascade_flags.insert(CascadeFlags::PROHIBIT_DISPLAY_CONTENTS);
|
||||
}
|
||||
|
||||
doc_data.stylist.compute_style_with_inputs(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue