Port widgets to the new system

This commit is contained in:
Evan Almloff committed 2023-04-13 10:29:38 -05:00
1 parent c2b873c650
commit efa7305794
18 files changed
+286 -240

No files matched your search

+3 -6
View File
@@ -25,12 +25,6 @@ impl<T> PossiblyUninitalized<T> {
_ => panic!("uninitalized"),
}
}
pub fn ok(self) -> Option<T> {
match self {
Self::Initialized(i) => Some(i),
_ => None,
}
}
}
impl<T> Default for PossiblyUninitalized<T> {
fn default() -> Self {
@@ -54,6 +48,9 @@ impl State for TaffyLayout {
.with_attrs(AttributeMaskBuilder::Some(SORTED_LAYOUT_ATTRS))
.with_text();
// The layout state should be effected by the shadow dom
const TRAVERSE_SHADOW_DOM: bool = true;
fn update<'a>(
&mut self,
node_view: NodeView,