mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1165896 - Fix the argument naming of MaybeSnapToDevicePixels to match UserToDevicePixelSnapped. r=Bas
This commit is contained in:
parent
7eb901f048
commit
b67aa400fb
@ -362,9 +362,10 @@ inline bool UserToDevicePixelSnapped(Rect& aRect, const DrawTarget& aDrawTarget,
|
||||
* 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();
|
||||
|
Loading…
Reference in New Issue
Block a user