Bonus Fix - Rename traverse_dom_preorder to traverse_dom.

The incorrect naming here was bugging me - the dom traversal has both pre- and post-order
processing steps.
This commit is contained in:
Bobby Holley 2016-01-06 19:18:12 -08:00
parent 136c0938a2
commit 29987a6715
5 changed files with 12 additions and 13 deletions

View file

@ -1026,11 +1026,11 @@ impl LayoutTask {
// Perform CSS selector matching and flow construction.
match self.parallel_traversal {
None => {
sequential::traverse_dom_preorder::<ServoLayoutNode, RecalcStyleAndConstructFlows>(
sequential::traverse_dom::<ServoLayoutNode, RecalcStyleAndConstructFlows>(
node, &shared_layout_context);
}
Some(ref mut traversal) => {
parallel::traverse_dom_preorder::<ServoLayoutNode, RecalcStyleAndConstructFlows>(
parallel::traverse_dom::<ServoLayoutNode, RecalcStyleAndConstructFlows>(
node, &shared_layout_context, traversal);
}
}