diff --git a/src/servo/css/matching.rs b/src/servo/css/matching.rs index e1ea738a9a4..8bd39f6bf1a 100644 --- a/src/servo/css/matching.rs +++ b/src/servo/css/matching.rs @@ -8,7 +8,7 @@ use layout::context::LayoutContext; use select_handler::NodeSelectHandler; trait MatchMethods { - fn restyle_subtree(ctx: &LayoutContext, select_ctx: &SelectCtx); + fn restyle_subtree(select_ctx: &SelectCtx); } impl Node : MatchMethods { @@ -19,12 +19,12 @@ impl Node : MatchMethods { * the node (the reader-auxiliary box in the COW model) with the * computed style. */ - fn restyle_subtree(ctx: &LayoutContext, select_ctx: &SelectCtx) { + fn restyle_subtree(select_ctx: &SelectCtx) { let mut i = 0u; for NodeTree.each_child(&self) |kid| { i = i + 1u; - kid.restyle_subtree(ctx, select_ctx); + kid.restyle_subtree(select_ctx); } let select_handler = NodeSelectHandler { diff --git a/src/servo/layout/layout_task.rs b/src/servo/layout/layout_task.rs index 7971c4a6f71..8c96efa66ba 100644 --- a/src/servo/layout/layout_task.rs +++ b/src/servo/layout/layout_task.rs @@ -175,7 +175,7 @@ impl Layout { // TODO: this is dumb. we don't need 2 separate traversals. node.initialize_style_for_subtree(&self.layout_refs); do self.css_select_ctx.borrow_imm |ctx| { - node.restyle_subtree(&layout_ctx, ctx); + node.restyle_subtree(ctx); } let builder = LayoutTreeBuilder::new();