Bug 1065764, part 1 - Make gfxMatrix::NudgeToIntegers() return a reference. r=Bas

This commit is contained in:
Jonathan Watt 2014-09-11 01:46:19 +01:00
parent ea0b67384b
commit 7d3142ed90
2 changed files with 3 additions and 2 deletions

View File

@ -147,7 +147,7 @@ static void NudgeToInteger(double *aVal)
*aVal = f;
}
void
gfxMatrix&
gfxMatrix::NudgeToIntegers(void)
{
NudgeToInteger(&_11);
@ -156,4 +156,5 @@ gfxMatrix::NudgeToIntegers(void)
NudgeToInteger(&_22);
NudgeToInteger(&_31);
NudgeToInteger(&_32);
return *this;
}

View File

@ -284,7 +284,7 @@ public:
* to integers. In particular, components that are integral when
* converted to single precision are set to those integers.
*/
void NudgeToIntegers(void);
gfxMatrix& NudgeToIntegers(void);
/**
* Returns true if matrix is multiple of 90 degrees rotation with flipping,