mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-11 20:35:50 +00:00
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:
parent
2255a9eed7
commit
c3ffce14a8
@ -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));
|
||||
|
@ -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
|
||||
|
@ -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;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user