mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1028794 - Remove the Thebes backed gfxContext creating version of nsRenderingContext::Init() (Moz2D conversion). r=Bas
This commit is contained in:
parent
fbaa2770d4
commit
94f0aa39c2
@ -20,8 +20,6 @@
|
||||
#include "nsRect.h" // for nsRect, nsIntRect
|
||||
#include "nsRegion.h" // for nsIntRegionRectIterator, etc
|
||||
|
||||
class gfxASurface;
|
||||
|
||||
// XXXTodo: rename FORM_TWIPS to FROM_APPUNITS
|
||||
#define FROM_TWIPS(_x) ((gfxFloat)((_x)/(mP2A)))
|
||||
#define FROM_TWIPS_INT(_x) (NSToIntRound((gfxFloat)((_x)/(mP2A))))
|
||||
@ -65,13 +63,6 @@ static int32_t FindSafeLength(const char *aString, uint32_t aLength,
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
//// nsRenderingContext
|
||||
|
||||
void
|
||||
nsRenderingContext::Init(nsDeviceContext* aContext,
|
||||
gfxASurface *aThebesSurface)
|
||||
{
|
||||
Init(aContext, new gfxContext(aThebesSurface));
|
||||
}
|
||||
|
||||
void
|
||||
nsRenderingContext::Init(nsDeviceContext* aContext,
|
||||
gfxContext *aThebesContext)
|
||||
|
@ -22,7 +22,6 @@
|
||||
#include "nsString.h" // for nsString
|
||||
#include "nscore.h" // for char16_t
|
||||
|
||||
class gfxASurface;
|
||||
class nsIntRegion;
|
||||
struct nsPoint;
|
||||
struct nsRect;
|
||||
@ -45,7 +44,6 @@ public:
|
||||
|
||||
NS_INLINE_DECL_REFCOUNTING(nsRenderingContext)
|
||||
|
||||
void Init(nsDeviceContext* aContext, gfxASurface* aThebesSurface);
|
||||
void Init(nsDeviceContext* aContext, gfxContext* aThebesContext);
|
||||
void Init(nsDeviceContext* aContext, DrawTarget* aDrawTarget);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user