Issue #1925 - Convert NS_SIDE_IS_VERTICAL to a constexpr function.

This commit is contained in:
Moonchild 2024-08-02 10:31:21 +02:00 committed by roytam1
commit b0b13b8719
5 changed files with 11 additions and 9 deletions

View file

@ -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_ */