2022-11-02 01:42:29 +00:00
|
|
|
use crate::virtualdom::VirtualDom;
|
2022-10-28 04:58:47 +00:00
|
|
|
|
|
|
|
use crate::any_props::VComponentProps;
|
2022-11-02 01:42:29 +00:00
|
|
|
|
2022-10-28 04:58:47 +00:00
|
|
|
use crate::component::Component;
|
|
|
|
use crate::mutations::Mutation;
|
|
|
|
use crate::nodes::{DynamicNode, Template, TemplateId};
|
|
|
|
use crate::scopes::Scope;
|
2022-10-22 01:54:14 +00:00
|
|
|
use crate::{
|
2022-10-28 04:58:47 +00:00
|
|
|
any_props::AnyProps,
|
|
|
|
arena::ElementId,
|
|
|
|
bump_frame::BumpFrame,
|
2022-11-02 01:42:29 +00:00
|
|
|
nodes::VNode,
|
|
|
|
scopes::{ScopeId, ScopeState},
|
2022-01-31 17:49:21 +00:00
|
|
|
};
|
2022-10-28 04:58:47 +00:00
|
|
|
use slab::Slab;
|
2022-10-22 01:54:14 +00:00
|
|
|
|
2022-11-02 01:42:29 +00:00
|
|
|
pub struct DirtyScope {
|
|
|
|
height: usize,
|
|
|
|
id: ScopeId,
|
|
|
|
}
|
|
|
|
|
|
|
|
impl VirtualDom {
|
|
|
|
fn diff_scope<'a>(&'a mut self, mutations: &mut Vec<Mutation<'a>>, scope: ScopeId) {
|
|
|
|
let scope_state = &mut self.scopes[scope.0];
|
|
|
|
}
|
|
|
|
}
|