Bug 794884. Make SupportImageWithMimeType return a bool. r=joe.

This cleans things up quite a bit.
---
 content/base/src/nsObjectLoadingContent.cpp |    4 +---
 docshell/base/nsWebNavigationInfo.cpp       |    4 +---
 image/src/imgLoader.cpp                     |    7 ++-----
 image/src/imgLoader.h                       |    2 +-
 layout/build/nsContentDLF.cpp               |    4 +---
 5 files changed, 6 insertions(+), 15 deletions(-)
This commit is contained in:
Jeff Muizelaar
2012-10-03 16:17:47 -04:00
parent a7315b6b42
commit 49b4f56bcc
5 changed files with 6 additions and 15 deletions

View File

@@ -99,9 +99,7 @@ nsWebNavigationInfo::IsTypeSupportedInternal(const nsCString& aType,
// XXXbz we only need this because images register for the same
// contractid as documents, so we can't tell them apart based on
// contractid.
bool isImage = false;
imgLoader::SupportImageWithMimeType(aType.get(), &isImage);
if (isImage) {
if (imgLoader::SupportImageWithMimeType(aType.get())) {
*aIsSupported = nsIWebNavigationInfo::IMAGE;
}
else {