pub struct DocumentData {
pub stylo_element_data: StyloData,
pub selector_flags: Cell<ElementSelectorFlags>,
pub guard: Option<SharedRwLock>,
pub dirty_descendants: AtomicBool,
pub damaged_descendants: AtomicBool,
pub element_state: ElementState,
pub has_snapshot: bool,
pub snapshot_handled: AtomicBool,
pub display_constructed_as: Display,
pub layout_data: Option<Box<LayoutData>>,
pub transform: Option<Box<Affine>>,
}Expand description
Fields§
§stylo_element_data: StyloData§selector_flags: Cell<ElementSelectorFlags>Selector flags deposited here by apply_selector_flags when a
for_parent() flag is applied while matching the root <html> element,
whose parent node is the document.
guard: Option<SharedRwLock>A clone of the document’s shared style lock. Set when the owning
Node is constructed.
dirty_descendants: AtomicBool§damaged_descendants: AtomicBool§element_state: ElementState§has_snapshot: bool§snapshot_handled: AtomicBool§display_constructed_as: Display§layout_data: Option<Box<LayoutData>>Layout output state (None until layout first writes to this node).
transform: Option<Box<Affine>>Implementations§
Source§impl DocumentData
impl DocumentData
Sourcepub fn layout_data(&self) -> &LayoutData
pub fn layout_data(&self) -> &LayoutData
The document node’s layout output state, or a shared default if layout has never written to it.
Sourcepub fn layout_data_mut(&mut self) -> &mut LayoutData
pub fn layout_data_mut(&mut self) -> &mut LayoutData
Mutable access to the document node’s layout output state, allocating it if it does not yet exist.
Source§impl DocumentData
impl DocumentData
Trait Implementations§
Source§impl Clone for DocumentData
impl Clone for DocumentData
Source§impl Debug for DocumentData
impl Debug for DocumentData
Auto Trait Implementations§
impl !Freeze for DocumentData
impl !RefUnwindSafe for DocumentData
impl !Sync for DocumentData
impl !UnwindSafe for DocumentData
impl Send for DocumentData
impl Unpin for DocumentData
impl UnsafeUnpin for DocumentData
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> MaybeBoxed<Box<T>> for T
impl<T> MaybeBoxed<Box<T>> for T
Source§fn maybe_boxed(self) -> Box<T>
fn maybe_boxed(self) -> Box<T>
Convert
Source§impl<T> MaybeBoxed<T> for T
impl<T> MaybeBoxed<T> for T
Source§fn maybe_boxed(self) -> T
fn maybe_boxed(self) -> T
Convert