pub(crate) struct AncestorContext<'a> {
pub(crate) node: &'a Node,
pub(crate) sibling_index: Option<usize>,
pub(crate) sibling_count: Option<usize>,
pub(crate) bloom: AncestorBloom,
pub(crate) display: Option<&'static str>,
pub(crate) is_container: bool,
pub(crate) container_name: Option<ContainerName>,
pub(crate) container_size: Option<ContainerSize>,
pub(crate) in_disabled_fieldset: bool,
}Fields§
§node: &'a Node§sibling_index: Option<usize>§sibling_count: Option<usize>§bloom: AncestorBloomこの要素とその祖先すべての特徴(rule_index::AncestorBloom)。子の照合で、
子孫セレクタの左側に必要な特徴が祖先に無い規則を照合前に外すのに使う。
display: Option<&'static str>この要素の display(子の display:inherit の解決用。主な値のみ、他は None)。
is_container: boolこの要素が問い合わせコンテナ(container-type: size | inline-size)であるか
container_name: Option<ContainerName>コンテナ名(指定があれば)
container_size: Option<ContainerSize>コンテナの寸法(幅・高さ px)
in_disabled_fieldset: boolこの要素か祖先に disabled の付いた <fieldset> があるか(2026-11-18、TODO R5 (e) ④)。
子の :disabled の判定で祖先を全部たどらないため(512 段の入れ子では要素ごとに 512 回の比較になっていた)。
Trait Implementations§
Source§impl<'a> Clone for AncestorContext<'a>
impl<'a> Clone for AncestorContext<'a>
impl<'a> Copy for AncestorContext<'a>
Auto Trait Implementations§
impl<'a> Freeze for AncestorContext<'a>
impl<'a> RefUnwindSafe for AncestorContext<'a>
impl<'a> Send for AncestorContext<'a>
impl<'a> Sync for AncestorContext<'a>
impl<'a> Unpin for AncestorContext<'a>
impl<'a> UnsafeUnpin for AncestorContext<'a>
impl<'a> UnwindSafe for AncestorContext<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more