handle passes entering or avoiding the shadow tree

This commit is contained in:
Evan Almloff committed 2023-04-08 18:53:53 -05:00
1 parent 32945998c3
commit 60be849ff0
10 files changed
+167 -133

No files matched your search

-6
View File
@@ -7,8 +7,6 @@ use std::{
fmt::{Debug, Display},
};
use crate::shadow_dom::ShadowDom;
/// A element node in the RealDom
#[derive(Debug, Clone, Default)]
pub struct ElementNode<V: FromAnyValue = ()> {
@@ -20,9 +18,6 @@ pub struct ElementNode<V: FromAnyValue = ()> {
pub attributes: FxHashMap<OwnedAttributeDiscription, OwnedAttributeValue<V>>,
/// The events the element is listening for
pub listeners: FxHashSet<String>,
/// The shadow dom of the element
// This is a rare property, so it is stored in an `Box` to save space
pub shadow: Option<Box<ShadowDom<V>>>,
}
impl ElementNode {
@@ -33,7 +28,6 @@ impl ElementNode {
namespace: namespace.into(),
attributes: Default::default(),
listeners: Default::default(),
shadow: Default::default(),
}
}
}