Bug 880255. Add an implicit conversion from nsIntSize to IntSize. r=bgirard

--HG--
extra : rebase_source : ac59852b1bf458d181ab8223bc3255ebc0052620
This commit is contained in:
Jeff Muizelaar 2013-07-09 23:52:26 -04:00
Родитель b100c90df8
Коммит c39a2d83a6
1 изменённых файлов: 2 добавлений и 0 удалений

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

@ -8,6 +8,7 @@
#include "nsCoord.h"
#include "mozilla/gfx/BaseSize.h"
#include "mozilla/gfx/Point.h"
// Maximum allowable size
#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) {}
inline nsSize ToAppUnits(nscoord aAppUnitsPerPixel) const;
operator mozilla::gfx::IntSize() const { return mozilla::gfx::IntSize(width, height); };
};
inline nsIntSize