mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Simplify propagation of column sizes from TableWrapperFlow
This commit is contained in:
parent
9700b0e8b3
commit
622d43da8a
2 changed files with 5 additions and 18 deletions
|
@ -37,7 +37,6 @@ use style::properties::ServoComputedValues;
|
|||
use style::values::CSSFloat;
|
||||
use style::values::computed::LengthOrPercentageOrAuto;
|
||||
use table::{ColumnComputedInlineSize, ColumnIntrinsicInlineSize};
|
||||
use table_row;
|
||||
|
||||
#[derive(Copy, Clone, Serialize, Debug)]
|
||||
pub enum TableLayout {
|
||||
|
@ -394,7 +393,6 @@ impl Flow for TableWrapperFlow {
|
|||
}
|
||||
};
|
||||
|
||||
let border_spacing = self.block_flow.fragment.style().get_inheritedtable().border_spacing;
|
||||
match assigned_column_inline_sizes {
|
||||
None => {
|
||||
self.block_flow
|
||||
|
@ -410,18 +408,11 @@ impl Flow for TableWrapperFlow {
|
|||
inline_start_content_edge,
|
||||
inline_end_content_edge,
|
||||
content_inline_size,
|
||||
|child_flow,
|
||||
_child_index,
|
||||
_content_inline_size,
|
||||
writing_mode,
|
||||
_inline_start_margin_edge,
|
||||
_inline_end_margin_edge| {
|
||||
table_row::propagate_column_inline_sizes_to_child(
|
||||
child_flow,
|
||||
writing_mode,
|
||||
assigned_column_inline_sizes,
|
||||
&border_spacing,
|
||||
&mut vec![]);
|
||||
|child_flow, _, _, _, _, _| {
|
||||
if child_flow.class() == FlowClass::Table {
|
||||
child_flow.as_mut_table().column_computed_inline_sizes =
|
||||
assigned_column_inline_sizes.to_vec();
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue