mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 880255. Add an implicit conversion from nsIntSize to IntSize. r=bgirard
--HG-- extra : rebase_source : ac59852b1bf458d181ab8223bc3255ebc0052620
This commit is contained in:
parent
5f02247d3d
commit
443792d1cc
@ -8,6 +8,7 @@
|
|||||||
|
|
||||||
#include "nsCoord.h"
|
#include "nsCoord.h"
|
||||||
#include "mozilla/gfx/BaseSize.h"
|
#include "mozilla/gfx/BaseSize.h"
|
||||||
|
#include "mozilla/gfx/Point.h"
|
||||||
|
|
||||||
// Maximum allowable size
|
// Maximum allowable size
|
||||||
#define NS_MAXSIZE nscoord_MAX
|
#define NS_MAXSIZE nscoord_MAX
|
||||||
@ -35,6 +36,7 @@ struct nsIntSize : public mozilla::gfx::BaseSize<int32_t, nsIntSize> {
|
|||||||
nsIntSize(int32_t aWidth, int32_t aHeight) : Super(aWidth, aHeight) {}
|
nsIntSize(int32_t aWidth, int32_t aHeight) : Super(aWidth, aHeight) {}
|
||||||
|
|
||||||
inline nsSize ToAppUnits(nscoord aAppUnitsPerPixel) const;
|
inline nsSize ToAppUnits(nscoord aAppUnitsPerPixel) const;
|
||||||
|
operator mozilla::gfx::IntSize() const { return mozilla::gfx::IntSize(width, height); };
|
||||||
};
|
};
|
||||||
|
|
||||||
inline nsIntSize
|
inline nsIntSize
|
||||||
|
Loading…
Reference in New Issue
Block a user