clean up and document focus system

This commit is contained in:
Evan Almloff committed 2022-05-04 14:28:02 -05:00
1 parent 749150e22d
commit dd7784d205
2 files changed
+12 -26

No files matched your search

+2
View File
@@ -78,6 +78,7 @@ impl PersistantElementIter {
}
})
.collect();
// if any element is removed in the chain, remove it and its children from the stack
if let Some(r) = self
.stack
.iter()
@@ -165,6 +166,7 @@ impl PersistantElementIter {
/// get the previous element
pub fn prev<S: State>(&mut self, rdom: &RealDom<S>) -> ElementProduced {
// recursively add the last child element to the stack
fn push_back<S: State>(
stack: &mut smallvec::SmallVec<[(ElementId, NodePosition); 5]>,
new_node: ElementId,