mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-06 07:48:38 +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
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue