mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Assign table row block sizes in the parent table or rowgroup
This commit is contained in:
parent
2c2f8be1cc
commit
2a0e1cd9c9
4 changed files with 68 additions and 54 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue