mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Do not lazy initialize RareData on its getters
This commit is contained in:
parent
d0b2e826ef
commit
9b2eb77530
4 changed files with 101 additions and 109 deletions
|
@ -10,6 +10,9 @@ use crate::dom::mutationobserver::RegisteredObserver;
|
|||
use crate::dom::shadowroot::ShadowRoot;
|
||||
use std::rc::Rc;
|
||||
|
||||
//XXX(ferjm) Ideally merge NodeRareData and ElementRareData so they share
|
||||
// storage.
|
||||
|
||||
#[derive(Default, JSTraceable, MallocSizeOf)]
|
||||
#[must_root]
|
||||
pub struct NodeRareData {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue