Bug 1165896 - Fix the argument naming of MaybeSnapToDevicePixels to match UserToDevicePixelSnapped. r=Bas
--- a/gfx/2d/PathHelpers.h
+++ b/gfx/2d/PathHelpers.h
@@ -357,19 +357,20 @@ inline bool UserToDevicePixelSnapped(Rec
return false;
}
/**
* This function has the same behavior as UserToDevicePixelSnapped except that
* aRect is not transformed to device space.
*/
inline void MaybeSnapToDevicePixels(Rect& aRect, const DrawTarget& aDrawTarget,
- bool aIgnoreScale = false)
+ bool aAllowScaleOr90DegreeRotate = false)
{
- if (UserToDevicePixelSnapped(aRect, aDrawTarget, aIgnoreScale)) {
+ if (UserToDevicePixelSnapped(aRect, aDrawTarget,
+ aAllowScaleOr90DegreeRotate)) {
// Since UserToDevicePixelSnapped returned true we know there is no
// rotation/skew in 'mat', so we can just use TransformBounds() here.
Matrix mat = aDrawTarget.GetTransform();
mat.Invert();
aRect = mat.TransformBounds(aRect);
}
}