mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Backed out changeset 154fa450fb1f (bug 1214055) because it wasn't ready to land.
This commit is contained in:
parent
ce4def49e4
commit
f5f33ee3a4
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user