Pass a LayoutContext through box construction

This commit is contained in:
Simon Sapin 2019-12-02 22:26:49 +01:00
parent 9c5a595044
commit 4e6e31a76c
6 changed files with 34 additions and 31 deletions

View file

@ -12,7 +12,6 @@ use crate::style_ext::DisplayInside;
use crate::ContainingBlock;
use servo_arc::Arc;
use std::convert::TryInto;
use style::context::SharedStyleContext;
use style::properties::ComputedValues;
use style::values::computed::Length;
@ -46,8 +45,8 @@ enum NonReplacedIFCKind<'a> {
}
impl IndependentFormattingContext {
pub fn construct<'dom, 'style>(
context: &SharedStyleContext<'style>,
pub fn construct<'dom>(
context: &LayoutContext,
style: Arc<ComputedValues>,
display_inside: DisplayInside,
contents: Contents<impl NodeExt<'dom>>,