Bug 711063 - Part 1.5: Add operator to gfx::Matrix for size transformation. r=jrmuizel

This commit is contained in:
Bas Schouten 2012-01-05 08:17:51 +01:00
parent fbae97b9be
commit 419c357802

View File

@ -73,6 +73,16 @@ public:
return retPoint;
}
Size operator *(const Size &aSize) const
{
Size retSize;
retSize.width = aSize.width * _11 + aSize.height * _21;
retSize.height = aSize.width * _12 + aSize.height * _22;
return retSize;
}
Rect TransformBounds(const Rect& rect) const;
// Apply a scale to this matrix. This scale will be applied -before- the