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

@ -1287,7 +1287,7 @@ nsIFrame::ComputeBorderRadii(const nsStyleCorners& aBorderRadius,
uint32_t hc1 = NS_SIDE_TO_HALF_CORNER(side, false, true);
uint32_t hc2 = NS_SIDE_TO_HALF_CORNER(side, true, true);
nscoord length =
NS_SIDE_IS_VERTICAL(side) ? aBorderArea.height : aBorderArea.width;
SideIsVertical(side) ? aBorderArea.height : aBorderArea.width;
nscoord sum = aRadii[hc1] + aRadii[hc2];
if (sum)
haveRadius = true;