зеркало из https://github.com/mozilla/gecko-dev.git
Bug 764125; fixed crash test fail on gtk caused by null. r=Bas
This commit is contained in:
Родитель
9f057a5253
Коммит
48ad611564
|
@ -687,6 +687,9 @@ gfxPlatform::CreateOffscreenDrawTarget(const IntSize& aSize, SurfaceFormat aForm
|
|||
if (backend == BACKEND_CAIRO) {
|
||||
nsRefPtr<gfxASurface> surf = CreateOffscreenSurface(ThebesIntSize(aSize),
|
||||
ContentForFormat(aFormat));
|
||||
if (!surf) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
return CreateDrawTargetForSurface(surf, aSize);
|
||||
} else {
|
||||
|
|
Загрузка…
Ссылка в новой задаче