зеркало из https://github.com/mozilla/gecko-dev.git
Backed out changeset 154fa450fb1f (bug 1214055) because it wasn't ready to land.
This commit is contained in:
Родитель
a00ad7cec8
Коммит
02cb32707b
|
@ -168,7 +168,7 @@ nsPNGDecoder::CreateFrame(png_uint_32 aXOffset, png_uint_32 aYOffset,
|
|||
CheckForTransparency(aFormat, frameRect);
|
||||
|
||||
// XXX(seth): Some tests depend on the first frame of PNGs being B8G8R8A8.
|
||||
// This is something we should fix. See bug 1120141.
|
||||
// This is something we should fix.
|
||||
gfx::SurfaceFormat format = aFormat;
|
||||
if (mNumFrames == 0) {
|
||||
format = gfx::SurfaceFormat::B8G8R8A8;
|
||||
|
@ -621,9 +621,7 @@ nsPNGDecoder::info_callback(png_structp png_ptr, png_infop info_ptr)
|
|||
#endif
|
||||
|
||||
if (decoder->IsMetadataDecode()) {
|
||||
// XXX(seth): Some tests depend on the first frame of PNGs being B8G8R8A8,
|
||||
// so we ignore the value of decoder->format here. See bug 1120141.
|
||||
decoder->CheckForTransparency(SurfaceFormat::B8G8R8A8,
|
||||
decoder->CheckForTransparency(decoder->format,
|
||||
IntRect(0, 0, width, height));
|
||||
|
||||
// We have the metadata we're looking for, so we don't need to decode any
|
||||
|
|
Загрузка…
Ссылка в новой задаче