Make the initial viewport size available to style::properties::cascade

This commit is contained in:
James Gilbertson 2015-03-05 01:38:44 -07:00
parent 67548a6244
commit 00785ecf63
3 changed files with 30 additions and 16 deletions

View file

@ -176,7 +176,8 @@ impl<'a> PreorderDomTraversal for RecalcStyleForNode<'a> {
// Perform the CSS cascade.
unsafe {
node.cascade_node(parent_opt,
node.cascade_node(self.layout_context.shared,
parent_opt,
&applicable_declarations,
self.layout_context.applicable_declarations_cache());
}