aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/sequential.rs
diff options
context:
space:
mode:
authorBobby Holley <bobbyholley@gmail.com>2016-01-06 19:08:03 -0800
committerBobby Holley <bobbyholley@gmail.com>2016-01-06 19:21:09 -0800
commit57d2a0b0dbbe0592f0295a217e08d9d6e2ffaac3 (patch)
tree79fd2bb2c03b0c785f96f7601690c058015e8d31 /components/layout/sequential.rs
parent60b3c66b28b5eaeef43f58945336fcc4b11f6c85 (diff)
downloadservo-57d2a0b0dbbe0592f0295a217e08d9d6e2ffaac3.tar.gz
servo-57d2a0b0dbbe0592f0295a217e08d9d6e2ffaac3.zip
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.
Diffstat (limited to 'components/layout/sequential.rs')
-rw-r--r--components/layout/sequential.rs6
1 files 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() {