Created attachment 253409 [details] [diff] [review] preblend to white in nsPostScriptObj::draw_image nsImageGtk::LockImagePixels turns transparent portions of the image white for 1-bit alpha images, so that printing doesn't show a black background. While we shouldn't destructively change the image data for 8-bit alpha images, printing needs to blend the image with white to avoid the black background for these images as well. This affects all 8-bit alpha images and SVG printing. Test URL is the former, for the latter try this page: http://www.w3.org/TR/SVG11/images/shapes/rect01.svg .
Created attachment 253411 [details] [diff] [review] tidy patch
do we care about this code? none of it is built on the trunk anymore...
This is a patch intended for the branch only.
Comment on attachment 253411 [details] [diff] [review] tidy patch Fixes printing of SVG and 8-bit alpha images on linux to not use black backgrounds.
Comment on attachment 253411 [details] [diff] [review] tidy patch approved for 220.127.116.11, a=dveditz for release-drivers
Checked in on MOZILLA_1_8_BRANCH.
verified fixed 18.104.22.168 using Mozilla/5.0 (X11; U; Linux i686; en-US; rv:22.214.171.124pre) Gecko/2007042803 BonEcho/126.96.36.199pre - Fedora FC 6 and the test link from comment #0. The result is now the expected result - the background is white, not black anymore. -> adding verified keyword