Assign table row block sizes in the parent table or rowgroup

This commit is contained in:
Manish Goregaokar 2018-02-26 17:08:32 -08:00
parent 2c2f8be1cc
commit 2a0e1cd9c9
4 changed files with 68 additions and 54 deletions

View file

@ -148,6 +148,17 @@ impl TableCellFlow {
}
}
}
// Total block size of child
//
// Call after block size calculation
pub fn total_block_size(&mut self) -> Au {
// TODO: Percentage block-size
let specified = MaybeAuto::from_style(self.fragment().style()
.content_block_size(),
Au(0)).specified_or_zero();
specified + self.fragment().border_padding.block_start_end()
}
}
impl Flow for TableCellFlow {