Add a generic inorder traversal method

This commit is contained in:
Matt Brubeck 2017-08-07 12:40:21 -07:00
parent a624496cc4
commit 0d36930727
3 changed files with 19 additions and 16 deletions

View file

@ -130,7 +130,7 @@ impl<'a> InorderFlowTraversal for ResolveGeneratedContent<'a> {
}
#[inline]
fn should_process(&mut self, flow: &mut Flow) -> bool {
fn should_process_subtree(&mut self, flow: &mut Flow) -> bool {
flow::base(flow).restyle_damage.intersects(RESOLVE_GENERATED_CONTENT) ||
flow::base(flow).flags.intersects(AFFECTS_COUNTERS | HAS_COUNTER_AFFECTING_CHILDREN)
}