Bug 1940938: apply code formatting via Lando

# ignore-this-changeset
This commit is contained in:
Otto Länd
2025-01-15 19:42:07 +00:00
parent 93d85d8d92
commit 4d2bc59c6c

View File

@@ -14,8 +14,9 @@ namespace mozilla {
static bool IsValidOverflowRect(const nsRect& aRect) { static bool IsValidOverflowRect(const nsRect& aRect) {
// The reason we can't simply use `nsRect::IsEmpty` is that any one dimension // The reason we can't simply use `nsRect::IsEmpty` is that any one dimension
// being zero is considered empty by it - On the other hand, an overflow rect is // being zero is considered empty by it - On the other hand, an overflow rect
// valid if it has non-negative dimensions and at least one of them is non-zero. // is valid if it has non-negative dimensions and at least one of them is
// non-zero.
return aRect.Size() != nsSize{0, 0} && aRect.Width() >= 0 && return aRect.Size() != nsSize{0, 0} && aRect.Width() >= 0 &&
aRect.Height() >= 0; aRect.Height() >= 0;
} }