Revert "Phase 4.1-4.2: StyleIndex with by_tag/by_class/by_id indexes, replace matching_rules with query_index, build_index after parsing"
This reverts commit 87feba394d.
This commit is contained in:
@@ -48,8 +48,6 @@ impl Interpreter {
|
||||
//let rhei_ctx = RheiContext::new(&rhei_scripts);
|
||||
//rhei_ctx.initialize(&mut variables);
|
||||
|
||||
stylesheet.build_index();
|
||||
|
||||
Ok(Document { roots, components, variables, rhei_scripts, stylesheet, interner: Interner::new(), tracker })
|
||||
}
|
||||
|
||||
@@ -529,7 +527,7 @@ impl Interpreter {
|
||||
.map(|(k, v)| (k.to_string(), v.to_string()))
|
||||
.collect();
|
||||
|
||||
stylesheet.matching_rules(Some(el.element_id), el.type_name, el_id, &classes, active_pseudo, structural, ancestors, preceding_siblings, &el_attributes)
|
||||
stylesheet.matching_rules(el.type_name, el_id, &classes, active_pseudo, structural, ancestors, preceding_siblings, &el_attributes)
|
||||
}
|
||||
|
||||
fn resolve_prop(v: &str, variables: &HashMap<String, Value>, rhei: &RheiContext) -> String {
|
||||
|
||||
Reference in New Issue
Block a user