mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-22 16:37:31 +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
|
|
@ -474,6 +474,11 @@ constexpr HalfCorner FullToHalfCorner(Corner aCorner, bool aIsVertical)
|
|||
return HalfCorner(aCorner * 2 + aIsVertical);
|
||||
}
|
||||
|
||||
constexpr bool SideIsVertical(Side aSide)
|
||||
{
|
||||
return aSide % 2;
|
||||
}
|
||||
|
||||
} // namespace mozilla
|
||||
|
||||
#endif /* MOZILLA_GFX_TYPES_H_ */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue