diff options
Diffstat (limited to 'components/layout/css/matching.rs')
-rw-r--r-- | components/layout/css/matching.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/layout/css/matching.rs b/components/layout/css/matching.rs index 5773fc6630a..456f8cbe88f 100644 --- a/components/layout/css/matching.rs +++ b/components/layout/css/matching.rs @@ -463,7 +463,7 @@ impl<'ln> PrivateMatchMethods for LayoutNode<'ln> { None => None, Some(ref style) => Some(&**style), }; - let (the_style, is_cacheable) = cascade(layout_context.screen_size, + let (the_style, is_cacheable) = cascade(layout_context.viewport_size, applicable_declarations, shareable, Some(&***parent_style), @@ -472,7 +472,7 @@ impl<'ln> PrivateMatchMethods for LayoutNode<'ln> { this_style = the_style } None => { - let (the_style, is_cacheable) = cascade(layout_context.screen_size, + let (the_style, is_cacheable) = cascade(layout_context.viewport_size, applicable_declarations, shareable, None, |