stylo: Allow bypassing the bottom-up traversal.

This commit is contained in:
Emilio Cobos Álvarez 2016-08-05 11:20:36 -07:00
parent 40df81d537
commit 436c1b3089
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
4 changed files with 37 additions and 15 deletions

View file

@ -26,7 +26,9 @@ pub fn traverse_dom<N, C>(root: N,
}
}
context.process_postorder(node);
if context.needs_postorder_traversal() {
context.process_postorder(node);
}
}
let context = C::new(shared, root.opaque());