Issue #1925 - Convert NS_HALF_TO_FULL_CORNER to a constexpr function.

This commit is contained in:
Moonchild 2024-08-02 09:25:03 +02:00 committed by roytam1
commit 31badb0f2e
3 changed files with 8 additions and 4 deletions

View file

@ -464,6 +464,11 @@ constexpr bool HalfCornerIsX(HalfCorner aHalfCorner)
return !(aHalfCorner % 2);
}
constexpr Corner HalfToFullCorner(HalfCorner aHalfCorner)
{
return Corner(aHalfCorner / 2);
}
} // namespace mozilla
#endif /* MOZILLA_GFX_TYPES_H_ */