Bug 1376782 - Replace gfxMargin with a typedef to MarginDouble. r?jrmuizel
MozReview-Commit-ID: FEIILgP5Cr7
--- 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) {}