pub struct DocumentData {Show 16 fields
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 style: Style<Atom>,
pub display_constructed_as: Display,
pub cache: Cache,
pub unrounded_layout: Layout,
pub final_layout: Layout,
pub scroll_offset: Point<f64>,
pub scrollable_overflow: Rect,
pub transform: Option<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§style: Style<Atom>§display_constructed_as: Display§cache: Cache§unrounded_layout: Layout§final_layout: Layout§scroll_offset: Point<f64>§scrollable_overflow: Rect§transform: Option<Affine>Implementations§
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 !Send for DocumentData
impl !Sync for DocumentData
impl !UnwindSafe 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