mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1028786, part 2 - Get rid of the Thebes backed gfxContext in gfxPlatformGtk.cpp. r=mattwoodrow
--HG-- extra : rebase_source : 2920a2b3d862180a15d5a037741744ea5766b5b1
This commit is contained in:
parent
f66d49576a
commit
5f2f65ee2a
@ -16,6 +16,7 @@
|
||||
#include "gfxPangoFonts.h"
|
||||
#include "gfxContext.h"
|
||||
#include "gfxUserFontSet.h"
|
||||
#include "gfxUtils.h"
|
||||
#include "gfxFT2FontBase.h"
|
||||
|
||||
#include "mozilla/gfx/2D.h"
|
||||
@ -125,9 +126,7 @@ gfxPlatformGtk::CreateOffscreenSurface(const IntSize& size,
|
||||
}
|
||||
|
||||
if (newSurface && needsClear) {
|
||||
nsRefPtr<gfxContext> tmpCtx = new gfxContext(newSurface);
|
||||
tmpCtx->SetOperator(gfxContext::OPERATOR_CLEAR);
|
||||
tmpCtx->Paint();
|
||||
gfxUtils::ClearThebesSurface(newSurface);
|
||||
}
|
||||
|
||||
return newSurface.forget();
|
||||
|
Loading…
Reference in New Issue
Block a user