Bug 1376782 - Replace gfxMargin with a typedef to MarginDouble. r?jrmuizel draft
authorKartikaya Gupta <kgupta@mozilla.com>
Wed, 28 Jun 2017 11:40:48 -0400
changeset 601382 a048a9885b316f571770f31acc813482b36a0bd5
parent 601255 cc903e3f61894e60c3b0efaf05e9a446d1d85888
child 601383 d7d1faeaf3c79a533754ab7b28a213b3ecb90a37
push id66037
push userkgupta@mozilla.com
push dateWed, 28 Jun 2017 18:23:09 +0000
reviewersjrmuizel
bugs1376782
milestone56.0a1
Bug 1376782 - Replace gfxMargin with a typedef to MarginDouble. r?jrmuizel MozReview-Commit-ID: FEIILgP5Cr7
gfx/thebes/gfxRect.h
--- a/gfx/thebes/gfxRect.h
+++ b/gfx/thebes/gfxRect.h
@@ -8,29 +8,22 @@
 
 #include "gfxTypes.h"
 #include "gfxPoint.h"
 #include "nsDebug.h"
 #include "nsRect.h"
 #include "mozilla/gfx/BaseMargin.h"
 #include "mozilla/gfx/BaseRect.h"
 #include "mozilla/gfx/MatrixFwd.h"
+#include "mozilla/gfx/Rect.h"
 #include "mozilla/Assertions.h"
 
 struct gfxQuad;
 
-struct gfxMargin : public mozilla::gfx::BaseMargin<gfxFloat, gfxMargin> {
-  typedef mozilla::gfx::BaseMargin<gfxFloat, gfxMargin> Super;
-
-  // Constructors
-  gfxMargin() : Super() {}
-  gfxMargin(const gfxMargin& aMargin) : Super(aMargin) {}
-  gfxMargin(gfxFloat aTop, gfxFloat aRight, gfxFloat aBottom, gfxFloat aLeft)
-    : Super(aTop, aRight, aBottom, aLeft) {}
-};
+typedef mozilla::gfx::MarginDouble gfxMargin;
 
 struct gfxRect :
     public mozilla::gfx::BaseRect<gfxFloat, gfxRect, gfxPoint, gfxSize, gfxMargin> {
     typedef mozilla::gfx::BaseRect<gfxFloat, gfxRect, gfxPoint, gfxSize, gfxMargin> Super;
 
     gfxRect() : Super() {}
     gfxRect(const gfxPoint& aPos, const gfxSize& aSize) :
         Super(aPos, aSize) {}