Bug 933019, part 1 - Remove the gfxContext(gfxASurface*) constructor. r=Bas

This commit is contained in:
Jonathan Watt 2014-07-10 10:58:06 +01:00
parent 2c0eccb279
commit 3ec7ce74ae
2 changed files with 0 additions and 23 deletions

View File

@ -80,25 +80,6 @@ private:
Pattern *mPattern;
};
gfxContext::gfxContext(gfxASurface *surface)
: mRefCairo(nullptr)
, mSurface(surface)
{
MOZ_COUNT_CTOR(gfxContext);
mCairo = cairo_create(surface->CairoSurface());
mFlags = surface->GetDefaultContextFlags();
if (mSurface->GetRotateForLandscape()) {
// Rotate page 90 degrees to draw landscape page on portrait paper
gfxIntSize size = mSurface->GetSize();
Translate(gfxPoint(0, size.width));
gfxMatrix matrix(0, -1,
1, 0,
0, 0);
Multiply(matrix);
}
}
gfxContext::gfxContext(DrawTarget *aTarget, const Point& aDeviceOffset)
: mPathIsRect(false)
, mTransformChanged(false)

View File

@ -41,10 +41,6 @@ class gfxContext MOZ_FINAL {
NS_INLINE_DECL_REFCOUNTING(gfxContext)
public:
/**
* Initialize this context from a surface.
*/
gfxContext(gfxASurface *surface);
/**
* Initialize this context from a DrawTarget.