Bug 1395218 - Make the bevel side parameters more strongly-typed. r=dholbert

MozReview-Commit-ID: 5rymg5uTMC1

--HG--
extra : rebase_source : 52feb903732eeba3dd52ff086de15181dde854c9
This commit is contained in:
Kartikaya Gupta 2017-08-30 12:22:18 -04:00
parent 2255a9eed7
commit c3ffce14a8
3 changed files with 8 additions and 8 deletions

View File

@ -3377,9 +3377,9 @@ DrawSolidBorderSegment(DrawTarget& aDrawTarget,
nscolor aColor,
int32_t aAppUnitsPerDevPixel,
nscoord aTwipsPerPixel,
uint8_t aStartBevelSide = 0,
mozilla::Side aStartBevelSide = mozilla::eSideTop,
nscoord aStartBevelOffset = 0,
uint8_t aEndBevelSide = 0,
mozilla::Side aEndBevelSide = mozilla::eSideTop,
nscoord aEndBevelOffset = 0)
{
ColorPattern color(ToDeviceColor(aColor));
@ -3474,9 +3474,9 @@ nsCSSRendering::DrawTableBorderSegment(DrawTarget& aDrawTarget,
const nsRect& aBorder,
int32_t aAppUnitsPerDevPixel,
int32_t aAppUnitsPerCSSPixel,
uint8_t aStartBevelSide,
mozilla::Side aStartBevelSide,
nscoord aStartBevelOffset,
uint8_t aEndBevelSide,
mozilla::Side aEndBevelSide,
nscoord aEndBevelOffset)
{
bool horizontal = ((eSideTop == aStartBevelSide) || (eSideBottom == aStartBevelSide));

View File

@ -551,9 +551,9 @@ struct nsCSSRendering {
const nsRect& aBorderRect,
int32_t aAppUnitsPerDevPixel,
int32_t aAppUnitsPerCSSPixel,
uint8_t aStartBevelSide = 0,
mozilla::Side aStartBevelSide = mozilla::eSideTop,
nscoord aStartBevelOffset = 0,
uint8_t aEndBevelSide = 0,
mozilla::Side aEndBevelSide = mozilla::eSideTop,
nscoord aEndBevelOffset = 0);
// NOTE: pt, dirtyRect, lineSize, ascent, offset in the following

View File

@ -6488,9 +6488,9 @@ struct BCBorderParameters
nscolor mBGColor;
nsRect mBorderRect;
int32_t mAppUnitsPerDevPixel;
uint8_t mStartBevelSide;
mozilla::Side mStartBevelSide;
nscoord mStartBevelOffset;
uint8_t mEndBevelSide;
mozilla::Side mEndBevelSide;
nscoord mEndBevelOffset;
};