Fix panic when html element has display: table.

This commit is contained in:
Glenn Watson 2015-07-31 16:40:06 +10:00
parent e458dca65b
commit 7dbffeed20
5 changed files with 24 additions and 1 deletions

View file

@ -273,6 +273,14 @@ impl Flow for TableWrapperFlow {
&mut self.block_flow
}
fn as_immutable_block<'a>(&'a self) -> &'a BlockFlow {
&self.block_flow
}
fn mark_as_root(&mut self) {
self.block_flow.mark_as_root();
}
fn bubble_inline_sizes(&mut self) {
// Get the intrinsic column inline-sizes info from the table flow.
for kid in self.block_flow.base.child_iter() {