mirror of
https://github.com/servo/servo.git
synced 2025-06-21 15:49:04 +01:00
stylo: Do not skip parent display-based style fixups for NAC that is not a NAC root
Stylo is currently skipping parent display-based style fixups for all NAC, whereas we probably only want to do this for NAC roots. In this patch, we ensure that we skip it for NAC roots, and pseudo-elements, but not other NAC.
This commit is contained in:
parent
19cbea23a8
commit
adcd86deb2
1 changed files with 3 additions and 1 deletions
|
@ -1171,7 +1171,9 @@ impl<'le> TElement for GeckoElement<'le> {
|
|||
// level native anonymous content subtree roots, since they're not
|
||||
// really roots from the style fixup perspective. Checking that we
|
||||
// are NAC handles both cases.
|
||||
self.is_native_anonymous()
|
||||
self.is_native_anonymous() &&
|
||||
(self.is_root_of_native_anonymous_subtree() ||
|
||||
self.implemented_pseudo_element().is_some())
|
||||
}
|
||||
|
||||
unsafe fn set_selector_flags(&self, flags: ElementSelectorFlags) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue