mirror of
https://github.com/servo/servo.git
synced 2025-08-07 22:45:34 +01:00
refactor: use is_zero() instead of comparing with Au::Zero() (#36347)
Use `is_zero()` instead of comparing with `Au::Zero()` for zero checks. Testing: This change does not cause behaviour change, a test is not necessary. Fixes: #36300 --------- Signed-off-by: Barigbue <barigbuenbira@gmail.com>
This commit is contained in:
parent
2fe57cc2a2
commit
a0730d7154
7 changed files with 16 additions and 14 deletions
|
@ -1720,7 +1720,7 @@ impl InlineFormattingContext {
|
|||
let mut collapsible_margins_in_children = CollapsedBlockMargins::zero();
|
||||
let content_block_size = layout.current_line.start_position.block;
|
||||
collapsible_margins_in_children.collapsed_through = !layout.had_inflow_content &&
|
||||
content_block_size == Au::zero() &&
|
||||
content_block_size.is_zero() &&
|
||||
collapsible_with_parent_start_margin.0;
|
||||
|
||||
CacheableLayoutResult {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue