mirror of
https://github.com/servo/servo.git
synced 2025-08-07 14:35:33 +01:00
Pass a LayoutContext through box construction
This commit is contained in:
parent
9c5a595044
commit
4e6e31a76c
6 changed files with 34 additions and 31 deletions
|
@ -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>>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue