diff --git a/gfx/src/nsRenderingContext.cpp b/gfx/src/nsRenderingContext.cpp index 5316733799c..464296078aa 100644 --- a/gfx/src/nsRenderingContext.cpp +++ b/gfx/src/nsRenderingContext.cpp @@ -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) diff --git a/gfx/src/nsRenderingContext.h b/gfx/src/nsRenderingContext.h index 5ee0f5a369e..5b14abb80a9 100644 --- a/gfx/src/nsRenderingContext.h +++ b/gfx/src/nsRenderingContext.h @@ -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);