From 57d2a0b0dbbe0592f0295a217e08d9d6e2ffaac3 Mon Sep 17 00:00:00 2001 From: Bobby Holley Date: Wed, 6 Jan 2016 19:08:03 -0800 Subject: [PATCH] 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. --- components/layout/sequential.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/layout/sequential.rs b/components/layout/sequential.rs index 98b8da8a9a9..ae236008121 100644 --- a/components/layout/sequential.rs +++ b/components/layout/sequential.rs @@ -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() {