зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1067311 - Don't crash if a gfxSurfaceDrawable failed to allocate a SourceSurface. r=Bas
This commit is contained in:
Родитель
a45caf6348
Коммит
2d5096129b
|
@ -34,6 +34,10 @@ gfxSurfaceDrawable::DrawWithSamplingRect(gfxContext* aContext,
|
|||
const GraphicsFilter& aFilter,
|
||||
gfxFloat aOpacity)
|
||||
{
|
||||
if (!mSourceSurface) {
|
||||
return true;
|
||||
}
|
||||
|
||||
// When drawing with CLAMP we can expand the sampling rect to the nearest pixel
|
||||
// without changing the result.
|
||||
gfxRect samplingRect = aSamplingRect;
|
||||
|
|
Загрузка…
Ссылка в новой задаче