Issue #1925 - Convert NS_SIDE_IS_VERTICAL to a constexpr function.

This commit is contained in:
Moonchild 2024-08-02 10:31:21 +02:00 • committed by roytam1
commit b0b13b8719
5 changed files with 11 additions and 9 deletions

View file

@ -328,10 +328,10 @@ void nsStyleCorners::Reset()
}
}
// Validation of NS_SIDE_IS_VERTICAL.
// Validation of SideIsVertical.
#define CASE(side, result) \
static_assert(NS_SIDE_IS_VERTICAL(side) == result, \
"NS_SIDE_IS_VERTICAL is wrong")
static_assert(SideIsVertical(side) == result, \
"SideIsVertical is wrong")
CASE(eSideTop, false);
CASE(eSideRight, true);
CASE(eSideBottom, false);