mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
Revert #19666 since we do create NAC elements and expect them to be inline.
This reverts commit1970e82b0d
, reversing changes made toe882660ea6
. The reparenting logic is still bogus, but I'll figure out how to deal with that in a bit.
This commit is contained in:
parent
1970e82b0d
commit
bab6077c1c
7 changed files with 49 additions and 29 deletions
|
@ -1256,6 +1256,19 @@ impl<'le> TElement for GeckoElement<'le> {
|
|||
}
|
||||
}
|
||||
|
||||
#[inline]
|
||||
fn skip_root_and_item_based_display_fixup(&self) -> bool {
|
||||
if !self.is_native_anonymous() {
|
||||
return false;
|
||||
}
|
||||
|
||||
if let Some(p) = self.implemented_pseudo_element() {
|
||||
return p.skip_item_based_display_fixup();
|
||||
}
|
||||
|
||||
self.is_root_of_native_anonymous_subtree()
|
||||
}
|
||||
|
||||
unsafe fn set_selector_flags(&self, flags: ElementSelectorFlags) {
|
||||
debug_assert!(!flags.is_empty());
|
||||
self.set_flags(selector_flags_to_node_flags(flags));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue