mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-13 02:37:32 +09:00
Issue #1925 - Convert NS_SIDE_IS_VERTICAL to a constexpr function.
This commit is contained in:
parent
8a2bc8ef4d
commit
b0b13b8719
5 changed files with 11 additions and 9 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue