mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-22 16:37:31 +09:00
Issue #1925 - Convert NS_SIDE_TO_FULL_CORNER to a constexpr function.
This commit is contained in:
parent
b0b13b8719
commit
2a399b60a1
3 changed files with 13 additions and 5 deletions
|
|
@ -20,8 +20,6 @@ namespace mozilla {
|
|||
// nsStyleCoord.cpp.
|
||||
// Arguments must not have side effects.
|
||||
|
||||
#define NS_SIDE_TO_FULL_CORNER(side_, second_) \
|
||||
(((side_) + !!(second_)) % 4)
|
||||
#define NS_SIDE_TO_HALF_CORNER(side_, second_, parallel_) \
|
||||
((((side_) + !!(second_))*2 + ((side_) + !(parallel_))%2) % 8)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue