mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-03 14:28:39 +09:00
Issue #1925 - Convert NS_HALF_CORNER_IS_X to a constexpr function.
This commit is contained in:
parent
1730199755
commit
f507d2cdbc
4 changed files with 12 additions and 7 deletions
|
|
@ -1237,7 +1237,7 @@ nsIFrame::ComputeBorderRadii(const nsStyleCorners& aBorderRadius,
|
|||
NS_FOR_CSS_HALF_CORNERS(i) {
|
||||
const nsStyleCoord c = aBorderRadius.Get(i);
|
||||
nscoord axis =
|
||||
NS_HALF_CORNER_IS_X(i) ? aFrameSize.width : aFrameSize.height;
|
||||
HalfCornerIsX(i) ? aFrameSize.width : aFrameSize.height;
|
||||
|
||||
if (c.IsCoordPercentCalcUnit()) {
|
||||
aRadii[i] = nsRuleNode::ComputeCoordPercentCalc(c, axis);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue