mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
Add a generic inorder traversal method
This commit is contained in:
parent
a624496cc4
commit
0d36930727
3 changed files with 19 additions and 16 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue