Bug 1220898 - Make nsIntMargin a typedef for mozilla::gfx::IntMargin. r=nical

--HG--
extra : source : a0ebe522b207e15b6b959cce7f7e0ded6d60c1c8
This commit is contained in:
Botond Ballo 2015-11-02 18:20:58 -05:00
Родитель 253fd15a51
Коммит ca6ad4ebaa
4 изменённых файлов: 3 добавлений и 14 удалений

Просмотреть файл

@ -106,7 +106,6 @@ class nsIWindowProvider;
struct JSPropertyDescriptor;
struct JSRuntime;
struct nsIntMargin;
template<class E> class nsCOMArray;
template<class K, class V> class nsDataHashtable;

Просмотреть файл

@ -15,7 +15,6 @@
#include "Units.h"
struct nsRect;
struct nsIntMargin;
class nsPresContext;
class nsRenderingContext;
class nsDeviceContext;

Просмотреть файл

@ -9,6 +9,7 @@
#include "nsCoord.h"
#include "nsPoint.h"
#include "mozilla/gfx/BaseMargin.h"
#include "mozilla/gfx/Rect.h"
struct nsMargin : public mozilla::gfx::BaseMargin<nscoord, nsMargin> {
typedef mozilla::gfx::BaseMargin<nscoord, nsMargin> Super;
@ -20,14 +21,6 @@ struct nsMargin : public mozilla::gfx::BaseMargin<nscoord, nsMargin> {
: Super(aTop, aRight, aBottom, aLeft) {}
};
struct nsIntMargin : public mozilla::gfx::BaseMargin<int32_t, nsIntMargin> {
typedef mozilla::gfx::BaseMargin<int32_t, nsIntMargin> Super;
// Constructors
nsIntMargin() : Super() {}
nsIntMargin(const nsIntMargin& aMargin) : Super(aMargin) {}
nsIntMargin(int32_t aTop, int32_t aRight, int32_t aBottom, int32_t aLeft)
: Super(aTop, aRight, aBottom, aLeft) {}
};
typedef mozilla::gfx::IntMargin nsIntMargin;
#endif /* NSMARGIN_H */

Просмотреть файл

@ -15,12 +15,10 @@
#include "nsCoord.h" // for nscoord, etc
#include "nsISupportsImpl.h" // for MOZ_COUNT_CTOR, etc
#include "nsPoint.h" // for nsIntPoint, nsPoint
#include "nsMargin.h" // for nsIntMargin, nsMargin
#include "nsSize.h" // for IntSize, nsSize
#include "nscore.h" // for NS_BUILD_REFCNT_LOGGING
struct nsMargin;
struct nsIntMargin;
typedef mozilla::gfx::IntRect nsIntRect;
struct nsRect :