Bug 1940938: apply code formatting via Lando
# ignore-this-changeset
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user