mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +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
|
@ -298,7 +298,6 @@ impl FlexLineItem<'_> {
|
|||
flex_context
|
||||
.sides_to_flow_relative(item_margin)
|
||||
.to_physical(container_writing_mode),
|
||||
None, /* clearance */
|
||||
self.layout_result.specific_layout_info,
|
||||
);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue