mirror of
https://github.com/servo/servo.git
synced 2025-08-16 02:45:36 +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
|
@ -3060,10 +3060,14 @@ bitflags! {
|
|||
pub struct CascadeFlags: u8 {
|
||||
/// Whether to inherit all styles from the parent. If this flag is not
|
||||
/// present, non-inherited styles are reset to their initial values.
|
||||
const INHERIT_ALL = 1 << 0;
|
||||
const INHERIT_ALL = 1;
|
||||
|
||||
/// Whether to skip any display style fixup for root element, flex/grid
|
||||
/// item, and ruby descendants.
|
||||
const SKIP_ROOT_AND_ITEM_BASED_DISPLAY_FIXUP = 1 << 1;
|
||||
|
||||
/// Whether to only cascade properties that are visited dependent.
|
||||
const VISITED_DEPENDENT_ONLY = 1 << 1;
|
||||
const VISITED_DEPENDENT_ONLY = 1 << 2;
|
||||
|
||||
/// Whether the given element we're styling is the document element,
|
||||
/// that is, matches :root.
|
||||
|
@ -3073,15 +3077,15 @@ bitflags! {
|
|||
///
|
||||
/// This affects some style adjustments, like blockification, and means
|
||||
/// that it may affect global state, like the Device's root font-size.
|
||||
const IS_ROOT_ELEMENT = 1 << 2;
|
||||
const IS_ROOT_ELEMENT = 1 << 3;
|
||||
|
||||
/// Whether we're computing the style of a link, either visited or
|
||||
/// unvisited.
|
||||
const IS_LINK = 1 << 3;
|
||||
const IS_LINK = 1 << 4;
|
||||
|
||||
/// Whether we're computing the style of a link element that happens to
|
||||
/// be visited.
|
||||
const IS_VISITED_LINK = 1 << 4;
|
||||
const IS_VISITED_LINK = 1 << 5;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue