summaryrefslogtreecommitdiffstats
path: root/image/decoders/nsBMPDecoder.cpp
Commit message (Collapse)AuthorAgeLines
* BMPs from the clipboard may include extra padding.Andrew Osmond2019-02-16-13/+32
| | | | | | | | | | | | | In the original Windows clipboard BMP decoder implementation in nsImageFromClipboard::ConvertColorBitMap, if the bitmap used bitfields compression, it always adjusted the offset to the RGB data by 12 bytes. It did this even for newer BMP header formats which explicitly include space for the bitfields in their header sizes. This patch updates our BMP decoder to do the same for clipboard BMPs, since we have observed pasted BMPs using bitfield compression appearing incorrectly. To the user this appears as if we read a color mask; completely red, blue, green pixels at the start of the last row, causing all of the other rows to start with the last three pixels of the previous row.
* Use existing image decoders to handle clipboard BMP data.wolfbeast2019-02-07-3/+14
| | | | | This gets rid of the old nsImageClipboard widget code in favor of using the nsBMPDecoder in imglib.
* Bug 1462355 - Part 1c. Make individual image decoders to use updated ↵wolfbeast2018-11-21-2/+1
| | | | | | Decoder/SurfacePipe methods. Extend this change to nsWebPDecoder.cpp
* Add m-esr52 at 52.6.0Matt A. Tobin2018-02-02-0/+1067