mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
layout: Remove clearance parameter from BoxFragment::new()
(#37921)
Clearance only applies to block-level boxes, so it was unnecessary to require it as a parameter. Instead, in block layout we can set it using the new `.with_clearance()` method. Testing: Unnecessary (no behavior change) Signed-off-by: Oriol Brufau <obrufau@igalia.com>
This commit is contained in:
parent
8d4988f288
commit
c00831f1ed
7 changed files with 11 additions and 19 deletions
|
@ -1787,7 +1787,6 @@ impl<'a> TableLayout<'a> {
|
|||
self.pbm.padding.to_physical(table_writing_mode),
|
||||
self.pbm.border.to_physical(table_writing_mode),
|
||||
PhysicalSides::zero(),
|
||||
None, /* clearance */
|
||||
self.specific_layout_info_for_grid(),
|
||||
);
|
||||
}
|
||||
|
@ -1912,7 +1911,6 @@ impl<'a> TableLayout<'a> {
|
|||
self.pbm.padding.to_physical(table_writing_mode),
|
||||
self.pbm.border.to_physical(table_writing_mode),
|
||||
PhysicalSides::zero(),
|
||||
None, /* clearance */
|
||||
self.specific_layout_info_for_grid(),
|
||||
)
|
||||
.with_baselines(baselines)
|
||||
|
@ -2358,7 +2356,6 @@ impl<'a> RowFragmentLayout<'a> {
|
|||
PhysicalSides::zero(), /* padding */
|
||||
PhysicalSides::zero(), /* border */
|
||||
PhysicalSides::zero(), /* margin */
|
||||
None, /* clearance */
|
||||
None, /* specific_layout_info */
|
||||
);
|
||||
row_fragment.set_does_not_paint_background();
|
||||
|
@ -2431,7 +2428,6 @@ impl RowGroupFragmentLayout {
|
|||
PhysicalSides::zero(), /* padding */
|
||||
PhysicalSides::zero(), /* border */
|
||||
PhysicalSides::zero(), /* margin */
|
||||
None, /* clearance */
|
||||
None, /* specific_layout_info */
|
||||
);
|
||||
row_group_fragment.set_does_not_paint_background();
|
||||
|
@ -2911,7 +2907,6 @@ impl TableSlotCell {
|
|||
layout.padding.to_physical(table_style.writing_mode),
|
||||
layout.border.to_physical(table_style.writing_mode),
|
||||
PhysicalSides::zero(), /* margin */
|
||||
None, /* clearance */
|
||||
specific_layout_info,
|
||||
)
|
||||
.with_baselines(layout.layout.baselines)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue