mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
layout: Minor style cleanup.
This commit is contained in:
parent
824a5e2e13
commit
ba005a93b8
4 changed files with 30 additions and 16 deletions
|
@ -76,6 +76,7 @@ impl TableWrapperFlow {
|
|||
table_layout: table_layout
|
||||
}
|
||||
}
|
||||
|
||||
fn border_padding_and_spacing(&mut self) -> (Au, Au) {
|
||||
let (mut table_border_padding, mut spacing) = (Au(0), Au(0));
|
||||
for kid in self.block_flow.base.child_iter_mut() {
|
||||
|
@ -366,9 +367,12 @@ impl Flow for TableWrapperFlow {
|
|||
containing_block_inline_size,
|
||||
&intermediate_column_inline_sizes);
|
||||
|
||||
if let TableLayout::Auto = self.table_layout {
|
||||
self.calculate_table_column_sizes_for_automatic_layout(
|
||||
&mut intermediate_column_inline_sizes)
|
||||
match self.table_layout {
|
||||
TableLayout::Auto => {
|
||||
self.calculate_table_column_sizes_for_automatic_layout(
|
||||
&mut intermediate_column_inline_sizes)
|
||||
}
|
||||
TableLayout::Fixed => {}
|
||||
}
|
||||
|
||||
let inline_start_content_edge = self.block_flow.fragment.border_box.start.i;
|
||||
|
@ -885,7 +889,9 @@ impl ISizeAndMarginsComputer for AbsoluteTable {
|
|||
parent_flow_inline_size: Au,
|
||||
shared_context: &SharedStyleContext)
|
||||
-> Au {
|
||||
AbsoluteNonReplaced.containing_block_inline_size(block, parent_flow_inline_size, shared_context)
|
||||
AbsoluteNonReplaced.containing_block_inline_size(block,
|
||||
parent_flow_inline_size,
|
||||
shared_context)
|
||||
}
|
||||
|
||||
fn solve_inline_size_constraints(&self,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue