style: Expose the traversal kind to the style system.

This way we'll be able to take different paths for the sequential and parallel
traversals in some concrete cases.

This is a preliminar patch to fix bug 1332525.
This commit is contained in:
Emilio Cobos Álvarez 2017-01-23 19:55:06 +01:00
parent 7e2329ea4e
commit f00b628c3a
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
7 changed files with 64 additions and 13 deletions

View file

@ -18,6 +18,7 @@ pub fn traverse_dom<E, D>(traversal: &D,
where E: TElement,
D: DomTraversal<E>,
{
debug_assert!(!traversal.is_parallel());
debug_assert!(token.should_traverse());
fn doit<E, D>(traversal: &D, traversal_data: &mut PerLevelTraversalData,