mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 06:11:37 +00:00
bug 333253. disabling icon decoder in cairo until proper fix can go in.
This commit is contained in:
parent
70cb3b553d
commit
195cfecbbe
@ -145,6 +145,8 @@ NS_IMETHODIMP nsIconDecoder::WriteFrom(nsIInputStream *inStr, PRUint32 count, PR
|
||||
|
||||
PRInt32 rownum;
|
||||
#if defined(MOZ_CAIRO_GFX)
|
||||
return NS_ERROR_FAILURE; // this code is totally busted.. fixing shortly.
|
||||
|
||||
PRUint8 *row = (PRUint8*)malloc(bpr);
|
||||
PRUint8 *adata = data + (bpr * height);
|
||||
for (rownum = 0; rownum < height; ++rownum, data += bpr) {
|
||||
@ -174,7 +176,7 @@ NS_IMETHODIMP nsIconDecoder::WriteFrom(nsIInputStream *inStr, PRUint32 count, PR
|
||||
#else
|
||||
NS_ENSURE_TRUE(buf_end - data >= PRInt32(bpr + abpr) * height,
|
||||
NS_ERROR_UNEXPECTED);
|
||||
|
||||
|
||||
for (rownum = 0; rownum < height; ++rownum, data += bpr)
|
||||
mFrame->SetImageData(data, bpr, rownum * bpr);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user