Implement canShowMIMEType
authorstaikos <staikos@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 18 May 2007 05:28:31 +0000 (05:28 +0000)
committerstaikos <staikos@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 18 May 2007 05:28:31 +0000 (05:28 +0000)
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@21549 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebKitQt/ChangeLog
WebKitQt/WebCoreSupport/FrameLoaderClientQt.cpp

index 6ac7e637504a03e24ea9950079453fa65dd063bc..47b3d48665ab440c3e258cc627f5bfd586e10ebc 100644 (file)
@@ -1,3 +1,12 @@
+2007-05-17  Adam Treat  <adam@staikos.net>
+
+        Reviewed by George Staikos.
+
+        Implement canShowMIMEType
+
+        * WebCoreSupport/FrameLoaderClientQt.cpp:
+        (WebCore::FrameLoaderClientQt::canShowMIMEType):
+
 2007-05-16  Lars Knoll <lars@trolltech.com>
 
         Reviewed by Zack
 2007-05-16  Lars Knoll <lars@trolltech.com>
 
         Reviewed by Zack
index 0887e9bce4b3a78d9591a64865bcfc3a1c819906..8ab760240dca7016eb95b342a0485877dbdd39a0 100644 (file)
@@ -492,9 +492,13 @@ void FrameLoaderClientQt::clearArchivedResources()
 
 bool FrameLoaderClientQt::canShowMIMEType(const String& MIMEType) const
 {
 
 bool FrameLoaderClientQt::canShowMIMEType(const String& MIMEType) const
 {
-    // FIXME: This is not good enough in the general case
-    qDebug() << "FrameLoaderClientQt::canShowMIMEType" << MIMEType;
-    return true;
+    if (MimeTypeRegistry::isSupportedImageMIMEType(MIMEType))
+        return true;
+
+    if (MimeTypeRegistry::isSupportedNonImageMIMEType(MIMEType))
+        return true;
+
+    return false;
 }
 
 
 }