mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 933019, part 1 - Remove the gfxContext(gfxASurface*) constructor. r=Bas
This commit is contained in:
parent
2c0eccb279
commit
3ec7ce74ae
@ -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)
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user