1 --- xulrunner-9.0.1/mozilla/modules/libpr0n/decoders/nsPNGDecoder.h.orig 2011-12-21 00:28:33.000000000 +0100
2 +++ xulrunner-9.0.1/mozilla/modules/libpr0n/decoders/nsPNGDecoder.h 2012-01-16 18:43:35.830209631 +0100
4 // Checks if the info header contains valid information
5 bool HasValidInfo() const
7 - return mInfo && mInfo->valid;
8 + return mInfo && png_get_valid(mPNG, mInfo, 0xFFFFFFFFU);
11 // Obtain the pixel depth if available or 0 otherwise
16 - return mInfo->pixel_depth;
17 + // XXX: shouldn't png_get_pixel_depth() be available?
18 + return png_get_bit_depth(mPNG, mInfo) * png_get_channels(mPNG, mInfo);