Remove the dependency of css/matching.rs on SharedLayoutContext.

This commit is contained in:
Bobby Holley 2015-12-31 12:51:26 -08:00
parent 08f2a24552
commit 94b0789a5f
2 changed files with 21 additions and 22 deletions

View file

@ -217,7 +217,7 @@ fn recalc_style_at<'a, 'ln, N: LayoutNode<'ln>> (context: &'a DomTraversalContex
// Perform the CSS cascade.
unsafe {
node.cascade_node(context.layout_context.shared,
node.cascade_node(&context.layout_context.shared.style_context,
parent_opt,
&applicable_declarations,
&mut context.layout_context.applicable_declarations_cache(),