mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-27 07:34:20 +00:00
Bug 115594 Support .CUR files patch by cbiesinger@web.de r=pavlov sr=tor
This commit is contained in:
parent
6b9a937fdb
commit
c27d88c251
@ -383,6 +383,7 @@ nsObjectFrame::GetSkipSides() const
|
||||
#define IMAGE_EXT_XBM "xbm"
|
||||
#define IMAGE_EXT_BMP "bmp"
|
||||
#define IMAGE_EXT_ICO "ico"
|
||||
#define IMAGE_EXT_CUR "cur"
|
||||
#define IMAGE_EXT_MNG "mng"
|
||||
#define IMAGE_EXT_JNG "jng"
|
||||
|
||||
@ -447,6 +448,7 @@ void nsObjectFrame::IsSupportedImage(nsIContent* aContent, PRBool* aImage)
|
||||
ext.EqualsIgnoreCase(IMAGE_EXT_XBM) ||
|
||||
ext.EqualsIgnoreCase(IMAGE_EXT_BMP) ||
|
||||
ext.EqualsIgnoreCase(IMAGE_EXT_ICO) ||
|
||||
ext.EqualsIgnoreCase(IMAGE_EXT_CUR) ||
|
||||
ext.EqualsIgnoreCase(IMAGE_EXT_MNG) ||
|
||||
ext.EqualsIgnoreCase(IMAGE_EXT_JNG))
|
||||
{
|
||||
|
@ -383,6 +383,7 @@ nsObjectFrame::GetSkipSides() const
|
||||
#define IMAGE_EXT_XBM "xbm"
|
||||
#define IMAGE_EXT_BMP "bmp"
|
||||
#define IMAGE_EXT_ICO "ico"
|
||||
#define IMAGE_EXT_CUR "cur"
|
||||
#define IMAGE_EXT_MNG "mng"
|
||||
#define IMAGE_EXT_JNG "jng"
|
||||
|
||||
@ -447,6 +448,7 @@ void nsObjectFrame::IsSupportedImage(nsIContent* aContent, PRBool* aImage)
|
||||
ext.EqualsIgnoreCase(IMAGE_EXT_XBM) ||
|
||||
ext.EqualsIgnoreCase(IMAGE_EXT_BMP) ||
|
||||
ext.EqualsIgnoreCase(IMAGE_EXT_ICO) ||
|
||||
ext.EqualsIgnoreCase(IMAGE_EXT_CUR) ||
|
||||
ext.EqualsIgnoreCase(IMAGE_EXT_MNG) ||
|
||||
ext.EqualsIgnoreCase(IMAGE_EXT_JNG))
|
||||
{
|
||||
|
@ -499,12 +499,10 @@ nsXMLMIMEDataSource::InitFromHack() {
|
||||
|
||||
rv = AddMapping(IMAGE_BMP, "bmp", "BMP Image", nsnull);
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
rv = AppendExtension(IMAGE_BMP, "bmp");
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
rv = AddMapping(IMAGE_ICO, "ico", "ICO Image", nsnull);
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
rv = AppendExtension(IMAGE_ICO, "ico");
|
||||
rv = AppendExtension(IMAGE_ICO, "cur");
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
rv = AddMapping(IMAGE_PNG, "png", "PNG Image", nsnull);
|
||||
|
@ -106,7 +106,7 @@ static nsDefaultMimeTypeEntry defaultMimeEntries [] =
|
||||
{ IMAGE_JPG, "jpeg,jpg", "JPEG Image", 0, 0 },
|
||||
{ IMAGE_PNG, "png", "PNG Image", 0, 0 },
|
||||
{ IMAGE_BMP, "bmp", "BMP Image", 0, 0 },
|
||||
{ IMAGE_ICO, "ico", "ICO Image", 0, 0 },
|
||||
{ IMAGE_ICO, "ico,cur", "ICO Image", 0, 0 },
|
||||
{ IMAGE_MNG, "mng", "MNG Image", 0, 0 },
|
||||
{ IMAGE_JNG, "jng", "JNG Image", 0, 0 },
|
||||
{ APPLICATION_XPINSTALL, "xpi", "XPInstall Install", 'xpi*','MOSS' },
|
||||
|
Loading…
x
Reference in New Issue
Block a user