pub struct NodeChangeReport {
pub change_set: NodeChangeSet,
pub relayout_scope: RelayoutScope,
pub changed_css_properties: Vec<CssPropertyType>,
pub text_change: Option<TextChange>,
}Expand description
Per-node change report combining multiple information sources.
Fields§
§change_set: NodeChangeSetBitflags from DOM-level field comparison.
relayout_scope: RelayoutScopeHighest RelayoutScope from any CSS property that changed on this node. This is more granular than NodeChangeSet’s binary LAYOUT/PAINT split.
None→ repaint only (color, opacity, transform)IfcOnly→ reshape text in the containing IFCSizingOnly→ recompute this node’s intrinsic sizeFull→ full subtree relayout (display, position, float, etc.)
changed_css_properties: Vec<CssPropertyType>Individual CSS properties that changed (for fine-grained cache invalidation). Empty if the change was structural (text content, node type, etc.)
text_change: Option<TextChange>If text content changed, the old and new text for cursor reconciliation.
Implementations§
Source§impl NodeChangeReport
impl NodeChangeReport
Sourcepub fn needs_layout(&self) -> bool
pub fn needs_layout(&self) -> bool
Returns the DirtyFlag level needed for this change report. Maps RelayoutScope + NodeChangeSet → a simple tri-state.
pub fn needs_paint(&self) -> bool
pub fn is_visually_unchanged(&self) -> bool
Trait Implementations§
Source§impl Clone for NodeChangeReport
impl Clone for NodeChangeReport
Source§fn clone(&self) -> NodeChangeReport
fn clone(&self) -> NodeChangeReport
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NodeChangeReport
impl Debug for NodeChangeReport
Source§impl Default for NodeChangeReport
impl Default for NodeChangeReport
Source§fn default() -> NodeChangeReport
fn default() -> NodeChangeReport
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for NodeChangeReport
impl RefUnwindSafe for NodeChangeReport
impl Send for NodeChangeReport
impl Sync for NodeChangeReport
impl Unpin for NodeChangeReport
impl UnsafeUnpin for NodeChangeReport
impl UnwindSafe for NodeChangeReport
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