mirror of
https://github.com/servo/servo.git
synced 2025-09-27 23:30:08 +01:00
layout: Add style to ConstraintSpace
and IndefiniteContainingBlock
(#39229)
They only had the writing mode, now they will have the entire computed style. This is needed for #39230. Testing: Not needed, no behavior change Signed-off-by: Oriol Brufau <obrufau@igalia.com>
This commit is contained in:
parent
dfdcba88d4
commit
9e9bd80bba
10 changed files with 44 additions and 62 deletions
|
@ -709,7 +709,7 @@ impl<'a> TableLayout<'a> {
|
|||
fn compute_caption_minimum_inline_size(&self, layout_context: &LayoutContext) -> Au {
|
||||
let containing_block = IndefiniteContainingBlock {
|
||||
size: LogicalVec2::default(),
|
||||
writing_mode: self.table.style.writing_mode,
|
||||
style: &self.table.style,
|
||||
};
|
||||
self.table
|
||||
.captions
|
||||
|
@ -2709,7 +2709,7 @@ impl ComputeInlineContentSizes for Table {
|
|||
layout_context: &LayoutContext,
|
||||
constraint_space: &ConstraintSpace,
|
||||
) -> InlineContentSizesResult {
|
||||
let writing_mode = constraint_space.writing_mode;
|
||||
let writing_mode = constraint_space.style.writing_mode;
|
||||
let mut layout = TableLayout::new(self);
|
||||
layout.compute_border_collapse(writing_mode);
|
||||
layout.pbm = self
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue