Bug 1450134. Remove ToRelativeLayoutPoint(). r=kats draft
authorJeff Muizelaar <jmuizelaar@mozilla.com>
Thu, 29 Mar 2018 17:57:00 -0400
changeset 774966 a9d82013457d1d246244707a6e0d7d57e34b530c
parent 774965 b4278b2f0801917efce3826515817a7e1251b4ce
child 774967 3938a775e7542d78cbec6a6be34d511c3a7026f1
child 775100 b5bda6bd58b249a8129bf2876eb1d0100f1e3766
child 775116 96536ee407d6d38aa453376085a1316fb11e108a
child 775118 c59b1535590dcbb6c49e6b426297825af36b0c01
push id104578
push userbmo:jmuizelaar@mozilla.com
push dateThu, 29 Mar 2018 22:15:35 +0000
reviewerskats
bugs1450134
milestone61.0a1
Bug 1450134. Remove ToRelativeLayoutPoint(). r=kats It's completely unused.
gfx/layers/wr/StackingContextHelper.h
--- a/gfx/layers/wr/StackingContextHelper.h
+++ b/gfx/layers/wr/StackingContextHelper.h
@@ -55,22 +55,16 @@ public:
   // things that are pushed inside the stacking context need to be relative
   // to the stacking context.
   // We allow passing in a LayoutDeviceRect for convenience because in a lot of
   // cases with WebRender display item generate the layout device space is the
   // same as the layer space. (TODO: try to make this more explicit somehow).
   // We also round the rectangle to ints after transforming since the output
   // is the final destination rect.
   wr::LayoutRect ToRelativeLayoutRect(const LayoutDeviceRect& aRect) const;
-  // Same but for points
-  wr::LayoutPoint ToRelativeLayoutPoint(const LayoutDevicePoint& aPoint) const
-  {
-    return wr::ToLayoutPoint(aPoint);
-  }
-
 
   // Export the inherited scale
   gfx::Size GetInheritedScale() const { return mScale; }
 
   const gfx::Matrix& GetInheritedTransform() const
   {
     return mInheritedTransform;
   }