mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
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:
parent
136c0938a2
commit
29987a6715
5 changed files with 12 additions and 13 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue