mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-24 09:27:31 +09:00
Issue #1925 - Convert NS_SIDE_TO_HALF_CORNER to a constexpr function.
This commit is contained in:
parent
2a399b60a1
commit
c096b46278
4 changed files with 29 additions and 15 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue