Issue #1925 - Convert NS_SIDE_TO_HALF_CORNER to a constexpr function.

This commit is contained in:
Moonchild 2024-08-02 11:15:28 +02:00 committed by roytam1
commit c096b46278
4 changed files with 29 additions and 15 deletions

View file

@ -16,13 +16,6 @@
namespace mozilla {
// The results of these conversion macros are exhaustively checked in
// nsStyleCoord.cpp.
// Arguments must not have side effects.
#define NS_SIDE_TO_HALF_CORNER(side_, second_, parallel_) \
((((side_) + !!(second_))*2 + ((side_) + !(parallel_))%2) % 8)
// Basic shapes
enum class StyleBasicShapeType : uint8_t {
Polygon,