diff --git a/gfx/thebes/gfxPlatform.cpp b/gfx/thebes/gfxPlatform.cpp index 1957a7fed38..a9c3569736e 100644 --- a/gfx/thebes/gfxPlatform.cpp +++ b/gfx/thebes/gfxPlatform.cpp @@ -938,7 +938,7 @@ gfxPlatform::GetThebesSurfaceForDrawTarget(DrawTarget *aTarget) } IntSize size = data->GetSize(); - gfxImageFormat format = OptimalFormatForContent(ContentForFormat(data->GetFormat())); + gfxImageFormat format = SurfaceFormatToImageFormat(data->GetFormat()); nsRefPtr surf =