Re: Transparent Black, or Are all transparent colors create equal?

2013-10-08 Thread Benoit Jacob
One kind of layer that would not have premultiplied alpha would be a CanvasLayer with a WebGL context with the {premultipliedAlpha:false} context attribute (what was passed as the 2nd argument to canvas.getContext). I did some testing and found a bug,

Transparent Black, or Are all transparent colors create equal?

2013-10-07 Thread Chris Peterson
I stumbled upon some layout code that for transparent colors using != or == NS_RGBA(0,0,0,0): http://dxr.mozilla.org/mozilla-central/search?q=regexp%3A%23[!%3D]%3D%20%3FNS_RGBA%23 Are those checks unnecessarily restrictive? One of the checks has a comment saying Use the strictest match for

Re: Transparent Black, or Are all transparent colors create equal?

2013-10-07 Thread Robert O'Callahan
On Mon, Oct 7, 2013 at 3:11 PM, Chris Peterson cpeter...@mozilla.comwrote: I stumbled upon some layout code that for transparent colors using != or == NS_RGBA(0,0,0,0): http://dxr.mozilla.org/**mozilla-central/search?q=**