mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-06 16:19:23 +00: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
Notes:
github-actions[bot]
2025-04-23 12:26:49 +00:00
Author: https://github.com/gmta
Commit: 1731389bfe
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4439
1 changed files with 25 additions and 24 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue