Bug 994924 - Fix broken logic in nsWindow for DrawTarget creation when using Skia r=jrmuizel

This commit is contained in:
George Wright 2014-04-11 13:16:26 -04:00
parent b4dac23f83
commit a9eb9c01c1

View File

@ -2138,7 +2138,7 @@ nsWindow::OnExposeEvent(cairo_t *cr)
CreateDrawTargetForSurface(surf, intSize));
} else if (gfxPlatform::GetPlatform()->
SupportsAzureContentForType(BackendType::SKIA) &&
surf->GetType() != gfxSurfaceType::Image) {
surf->GetType() == gfxSurfaceType::Image) {
gfxImageSurface* imgSurf = static_cast<gfxImageSurface*>(surf);
SurfaceFormat format = ImageFormatToSurfaceFormat(imgSurf->Format());
IntSize intSize(surf->GetSize().width, surf->GetSize().height);