mirror of
https://github.com/servo/servo.git
synced 2025-08-09 15:35:34 +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
|
@ -39,11 +39,10 @@ pub fn run_queue_with_custom_work_data_type<To, F, SharedContext: Sync>(
|
|||
queue.run(shared);
|
||||
}
|
||||
|
||||
pub fn traverse_dom_preorder<'ln, N, C>(
|
||||
root: N,
|
||||
queue_data: &C::SharedContext,
|
||||
queue: &mut WorkQueue<C::SharedContext, WorkQueueData>)
|
||||
where N: TNode<'ln>, C: DomTraversalContext<'ln, N> {
|
||||
pub fn traverse_dom<'ln, N, C>(root: N,
|
||||
queue_data: &C::SharedContext,
|
||||
queue: &mut WorkQueue<C::SharedContext, WorkQueueData>)
|
||||
where N: TNode<'ln>, C: DomTraversalContext<'ln, N> {
|
||||
run_queue_with_custom_work_data_type(queue, |queue| {
|
||||
queue.push(WorkUnit {
|
||||
fun: top_down_dom::<N, C>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue