mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 958596 - Allow gfx logging of any rect, size, and point. r=Bas
This commit is contained in:
parent
991dd05512
commit
484deeb390
@ -12,6 +12,7 @@
|
||||
|
||||
#include "nsDebug.h"
|
||||
#include "Point.h"
|
||||
#include "BaseRect.h"
|
||||
#include "Matrix.h"
|
||||
|
||||
#ifdef WIN32
|
||||
@ -96,13 +97,14 @@ public:
|
||||
Log &operator <<(unsigned long aLong) { mMessage << aLong; return *this; }
|
||||
Log &operator <<(Float aFloat) { mMessage << aFloat; return *this; }
|
||||
Log &operator <<(double aDouble) { mMessage << aDouble; return *this; }
|
||||
Log &operator <<(const Point &aPoint)
|
||||
template <typename T, typename Sub>
|
||||
Log &operator <<(const BasePoint<T, Sub>& aPoint)
|
||||
{ mMessage << "Point(" << aPoint.x << "," << aPoint.y << ")"; return *this; }
|
||||
Log &operator <<(const Size &aSize)
|
||||
template <typename T, typename Sub>
|
||||
Log &operator <<(const BaseSize<T, Sub>& aSize)
|
||||
{ mMessage << "Size(" << aSize.width << "," << aSize.height << ")"; return *this; }
|
||||
Log &operator <<(const IntSize &aSize)
|
||||
{ mMessage << "IntSize(" << aSize.width << "," << aSize.height << ")"; return *this; }
|
||||
Log &operator <<(const Rect &aRect)
|
||||
template <typename T, typename Sub, typename Point, typename SizeT, typename Margin>
|
||||
Log &operator <<(const BaseRect<T, Sub, Point, SizeT, Margin>& aRect)
|
||||
{ mMessage << "Rect(" << aRect.x << "," << aRect.y << "," << aRect.width << "," << aRect.height << ")"; return *this; }
|
||||
Log &operator<<(const Matrix& aMatrix)
|
||||
{ mMessage << "Matrix(" << aMatrix._11 << " " << aMatrix._12 << " ; " << aMatrix._21 << " " << aMatrix._22 << " ; " << aMatrix._31 << " " << aMatrix._32 << ")"; return *this; }
|
||||
|
Loading…
Reference in New Issue
Block a user