Issue #1925 - Convert NS_HALF_CORNER_IS_X to a constexpr function.

This commit is contained in:
Moonchild 2024-08-02 08:30:23 +02:00 committed by roytam1
commit f507d2cdbc
4 changed files with 12 additions and 7 deletions

View file

@ -20,7 +20,6 @@ namespace mozilla {
// nsStyleCoord.cpp.
// Arguments must not have side effects.
#define NS_HALF_CORNER_IS_X(var_) (!((var_)%2))
#define NS_HALF_TO_FULL_CORNER(var_) ((var_)/2)
#define NS_FULL_TO_HALF_CORNER(var_, vert_) ((var_)*2 + !!(vert_))