Bug 895905 - Document that ns[Int]Point stores coordinates in app units. r=tn

This commit is contained in:
Botond Ballo 2013-08-08 15:56:09 -04:00
parent 728be070e1
commit a2220a7990

View File

@ -13,6 +13,8 @@
struct nsIntPoint;
// nsPoint represents a point in app units.
struct nsPoint : public mozilla::gfx::BasePoint<nscoord, nsPoint> {
typedef mozilla::gfx::BasePoint<nscoord, nsPoint> Super;
@ -28,6 +30,10 @@ struct nsPoint : public mozilla::gfx::BasePoint<nscoord, nsPoint> {
inline nsPoint ConvertAppUnits(int32_t aFromAPP, int32_t aToAPP) const;
};
// nsIntPoint represents a point in one of the types of pixels.
// Uses of nsIntPoint should eventually be converted to CSSIntPoint,
// LayoutDeviceIntPoint, etc. (see layout/base/Units.h).
struct nsIntPoint : public mozilla::gfx::BasePoint<int32_t, nsIntPoint> {
typedef mozilla::gfx::BasePoint<int32_t, nsIntPoint> Super;