Bug 1165896 - Fix the argument naming of MaybeSnapToDevicePixels to match UserToDevicePixelSnapped. r=Bas
authorJonathan Watt <jwatt@jwatt.org>
Wed, 06 May 2015 14:40:26 +0100
changeset 265187 5a0278cd85f06e552721cf7806a69705e080744e
parent 265186 77c88c8abf20d9a89c7de66b466054ee0d118d53
child 265188 61455ff4e6ef91611424e9a669aba8fab8b629fc
push id2102
push usermartin.thomson@gmail.com
push dateMon, 18 May 2015 17:35:37 +0000
reviewersBas
bugs1165896
milestone41.0a1
Bug 1165896 - Fix the argument naming of MaybeSnapToDevicePixels to match UserToDevicePixelSnapped. r=Bas
gfx/2d/PathHelpers.h
--- 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);
   }
 }