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

@ -7,10 +7,10 @@
use dom::TNode;
use traversal::DomTraversalContext;
pub fn traverse_dom_preorder<'ln, N, C>(root: N,
shared: &C::SharedContext)
where N: TNode<'ln>,
C: DomTraversalContext<'ln, N> {
pub fn traverse_dom<'ln, N, C>(root: N,
shared: &C::SharedContext)
where N: TNode<'ln>,
C: DomTraversalContext<'ln, N> {
fn doit<'a, 'ln, N, C>(context: &'a C, node: N)
where N: TNode<'ln>, C: DomTraversalContext<'ln, N> {
context.process_preorder(node);