mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
ISSUE-23995: lazily generate unique_id for node
This commit is contained in:
parent
4fe8238b14
commit
d0c64d347d
3 changed files with 27 additions and 19 deletions
|
@ -7,6 +7,7 @@ use crate::dom::customelementregistry::{
|
|||
CustomElementDefinition, CustomElementReaction, CustomElementState,
|
||||
};
|
||||
use crate::dom::mutationobserver::RegisteredObserver;
|
||||
use crate::dom::node::UniqueId;
|
||||
use crate::dom::shadowroot::ShadowRoot;
|
||||
use std::rc::Rc;
|
||||
|
||||
|
@ -22,6 +23,8 @@ pub struct NodeRareData {
|
|||
pub containing_shadow_root: Option<Dom<ShadowRoot>>,
|
||||
/// Registered observers for this node.
|
||||
pub mutation_observers: Vec<RegisteredObserver>,
|
||||
/// Lazily-generated Unique Id for this node.
|
||||
pub unique_id: Option<UniqueId>,
|
||||
}
|
||||
|
||||
#[derive(Default, JSTraceable, MallocSizeOf)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue