mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-07 16:28:38 +09:00
Issue #1925 - Convert half-corner index macros to an enum.
This commit is contained in:
parent
d73f8c2e84
commit
8dc8875db6
9 changed files with 138 additions and 135 deletions
|
|
@ -5814,26 +5814,26 @@ ScrollFrameHelper::GetBorderRadii(const nsSize& aFrameSize,
|
|||
|
||||
if (sb.left > 0 || sb.top > 0) {
|
||||
ReduceRadii(border.left, border.top,
|
||||
aRadii[NS_CORNER_TOP_LEFT_X],
|
||||
aRadii[NS_CORNER_TOP_LEFT_Y]);
|
||||
aRadii[eCornerTopLeftX],
|
||||
aRadii[eCornerTopLeftY]);
|
||||
}
|
||||
|
||||
if (sb.top > 0 || sb.right > 0) {
|
||||
ReduceRadii(border.right, border.top,
|
||||
aRadii[NS_CORNER_TOP_RIGHT_X],
|
||||
aRadii[NS_CORNER_TOP_RIGHT_Y]);
|
||||
aRadii[eCornerTopRightX],
|
||||
aRadii[eCornerTopRightY]);
|
||||
}
|
||||
|
||||
if (sb.right > 0 || sb.bottom > 0) {
|
||||
ReduceRadii(border.right, border.bottom,
|
||||
aRadii[NS_CORNER_BOTTOM_RIGHT_X],
|
||||
aRadii[NS_CORNER_BOTTOM_RIGHT_Y]);
|
||||
aRadii[eCornerBottomRightX],
|
||||
aRadii[eCornerBottomRightY]);
|
||||
}
|
||||
|
||||
if (sb.bottom > 0 || sb.left > 0) {
|
||||
ReduceRadii(border.left, border.bottom,
|
||||
aRadii[NS_CORNER_BOTTOM_LEFT_X],
|
||||
aRadii[NS_CORNER_BOTTOM_LEFT_Y]);
|
||||
aRadii[eCornerBottomLeftX],
|
||||
aRadii[eCornerBottomLeftY]);
|
||||
}
|
||||
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue