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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user