Issue #1925 - Convert half-corner index macros to an enum.

This commit is contained in:
Moonchild 2024-08-02 08:01:01 +02:00 committed by roytam1
commit 8dc8875db6
9 changed files with 138 additions and 135 deletions

View file

@ -430,6 +430,19 @@ static inline mozilla::Corner operator++(mozilla::Corner& aCorner) {
return aCorner;
}
// Indices into "half corner" arrays (e.g. nsStyleCorners)
enum HalfCorner {
// This order is important!
eCornerTopLeftX = 0,
eCornerTopLeftY = 1,
eCornerTopRightX = 2,
eCornerTopRightY = 3,
eCornerBottomRightX = 4,
eCornerBottomRightY = 5,
eCornerBottomLeftX = 6,
eCornerBottomLeftY = 7
};
} // namespace mozilla
#endif /* MOZILLA_GFX_TYPES_H_ */