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 element_state: ElementState,
pub has_snapshot: bool,
pub snapshot_handled: AtomicBool,
pub style: Style<Atom>,
pub subtree_hoists: bool,
pub style_source: Option<Arc<ComputedValues>>,
pub display_constructed_as: Display,
pub unrounded_layout: Layout,
pub final_layout: Layout,
pub scroll_offset: Point<f64>,
pub scrollable_overflow: Rect,
pub transform: Option<Affine>,
/* private fields */
}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§element_state: ElementState§has_snapshot: bool§snapshot_handled: AtomicBool§style: Style<Atom>§subtree_hoists: bool§style_source: Option<Arc<ComputedValues>>See ElementData::style_source. The document node is styled and laid
out like an element, so it carries the same hazard.
display_constructed_as: Display§unrounded_layout: Layout§final_layout: Layout§scroll_offset: Point<f64>§scrollable_overflow: Rect§transform: Option<Affine>Implementations§
Source§impl DocumentData
impl DocumentData
Sourcepub fn cache(&self) -> &Cache
pub fn cache(&self) -> &Cache
As ElementData::cache. There is only one
document node, so this saves nothing by itself; it exists so both node
kinds present the same accessor and the forwarding on
Node stays uniform.
pub fn cache_mut(&mut self) -> &mut Cache
pub fn cache_release(&mut self)
pub fn new() -> Self
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