mirror of
https://github.com/zebrajr/ladybird.git
synced 2025-12-06 12:20:00 +01:00
LibWeb: Return early in clear_floating_boxes()
Get rid of an indentation level. No functional changes.
This commit is contained in:
parent
47ed39a790
commit
1731389bfe
|
|
@ -909,7 +909,9 @@ BlockFormattingContext::DidIntroduceClearance BlockFormattingContext::clear_floa
|
|||
auto result = DidIntroduceClearance::No;
|
||||
|
||||
auto clear_floating_boxes = [&](FloatSideData& float_side) {
|
||||
if (!float_side.current_boxes.is_empty()) {
|
||||
if (float_side.current_boxes.is_empty())
|
||||
return;
|
||||
|
||||
// NOTE: Floating boxes are globally relevant within this BFC, *but* their offset coordinates
|
||||
// are relative to their containing block.
|
||||
// This means that we have to first convert to a root-space Y coordinate before clearing,
|
||||
|
|
@ -938,7 +940,6 @@ BlockFormattingContext::DidIntroduceClearance BlockFormattingContext::clear_floa
|
|||
|
||||
if (!child_box.is_floating())
|
||||
float_side.clear();
|
||||
}
|
||||
};
|
||||
|
||||
if (computed_values.clear() == CSS::Clear::Left || computed_values.clear() == CSS::Clear::Both)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user