mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Make sequential traversal operate on TNode instead of LayoutNode.
I forgot to do this along with the parallel case. Ideally I'd merge this patch into that one, but then I'd need to rebase it over the LayoutContext patch, which would be a pain.
This commit is contained in:
parent
60b3c66b28
commit
57d2a0b0db
1 changed files with 3 additions and 3 deletions
|
@ -12,18 +12,18 @@ use flow::{self, Flow, ImmutableFlowUtils, InorderFlowTraversal, MutableFlowUtil
|
|||
use flow_ref::{self, FlowRef};
|
||||
use fragment::FragmentBorderBoxIterator;
|
||||
use generated_content::ResolveGeneratedContent;
|
||||
use style::dom::TNode;
|
||||
use style::traversal::DomTraversalContext;
|
||||
use traversal::{AssignBSizesAndStoreOverflow, AssignISizes};
|
||||
use traversal::{BubbleISizes, BuildDisplayList, ComputeAbsolutePositions, PostorderNodeMutTraversal};
|
||||
use util::opts;
|
||||
use wrapper::LayoutNode;
|
||||
|
||||
pub fn traverse_dom_preorder<'ln, N, C>(root: N,
|
||||
shared: &C::SharedContext)
|
||||
where N: LayoutNode<'ln>,
|
||||
where N: TNode<'ln>,
|
||||
C: DomTraversalContext<'ln, N> {
|
||||
fn doit<'a, 'ln, N, C>(context: &'a C, node: N)
|
||||
where N: LayoutNode<'ln>, C: DomTraversalContext<'ln, N> {
|
||||
where N: TNode<'ln>, C: DomTraversalContext<'ln, N> {
|
||||
context.process_preorder(node);
|
||||
|
||||
for kid in node.children() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue