mirror of
https://github.com/servo/servo.git
synced 2025-07-24 15:50:21 +01:00
Remove unused argument from TableLikeFlow::assign_block_size_for_table_like_flow.
This commit is contained in:
parent
4b9fa13f2f
commit
60a03f4263
2 changed files with 6 additions and 11 deletions
|
@ -494,10 +494,10 @@ impl Flow for TableFlow {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
fn assign_block_size<'a>(&mut self, layout_context: &'a LayoutContext<'a>) {
|
fn assign_block_size<'a>(&mut self, _: &'a LayoutContext<'a>) {
|
||||||
debug!("assign_block_size: assigning block_size for table");
|
debug!("assign_block_size: assigning block_size for table");
|
||||||
let vertical_spacing = self.spacing().vertical;
|
let vertical_spacing = self.spacing().vertical;
|
||||||
self.block_flow.assign_block_size_for_table_like_flow(layout_context, vertical_spacing)
|
self.block_flow.assign_block_size_for_table_like_flow(vertical_spacing)
|
||||||
}
|
}
|
||||||
|
|
||||||
fn compute_absolute_position(&mut self, layout_context: &LayoutContext) {
|
fn compute_absolute_position(&mut self, layout_context: &LayoutContext) {
|
||||||
|
@ -755,15 +755,11 @@ fn perform_border_collapse_for_row(child_table_row: &mut TableRowFlow,
|
||||||
/// rowgroups.
|
/// rowgroups.
|
||||||
pub trait TableLikeFlow {
|
pub trait TableLikeFlow {
|
||||||
/// Lays out the rows of a table.
|
/// Lays out the rows of a table.
|
||||||
fn assign_block_size_for_table_like_flow<'a>(&mut self,
|
fn assign_block_size_for_table_like_flow(&mut self, block_direction_spacing: Au);
|
||||||
layout_context: &'a LayoutContext<'a>,
|
|
||||||
block_direction_spacing: Au);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
impl TableLikeFlow for BlockFlow {
|
impl TableLikeFlow for BlockFlow {
|
||||||
fn assign_block_size_for_table_like_flow<'a>(&mut self,
|
fn assign_block_size_for_table_like_flow(&mut self, block_direction_spacing: Au) {
|
||||||
_: &'a LayoutContext<'a>,
|
|
||||||
block_direction_spacing: Au) {
|
|
||||||
debug_assert!(self.fragment.style.get_inheritedtable().border_collapse ==
|
debug_assert!(self.fragment.style.get_inheritedtable().border_collapse ==
|
||||||
border_collapse::T::separate || block_direction_spacing == Au(0));
|
border_collapse::T::separate || block_direction_spacing == Au(0));
|
||||||
|
|
||||||
|
|
|
@ -194,10 +194,9 @@ impl Flow for TableRowGroupFlow {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
fn assign_block_size<'a>(&mut self, layout_context: &'a LayoutContext<'a>) {
|
fn assign_block_size<'a>(&mut self, _: &'a LayoutContext<'a>) {
|
||||||
debug!("assign_block_size: assigning block_size for table_rowgroup");
|
debug!("assign_block_size: assigning block_size for table_rowgroup");
|
||||||
self.block_flow.assign_block_size_for_table_like_flow(layout_context,
|
self.block_flow.assign_block_size_for_table_like_flow(self.spacing.vertical)
|
||||||
self.spacing.vertical)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fn compute_absolute_position(&mut self, layout_context: &LayoutContext) {
|
fn compute_absolute_position(&mut self, layout_context: &LayoutContext) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue