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

WebKitQt/ChangeLog
WebKitQt/WebCoreSupport/FrameLoaderClientQt.cpp

index 47b3d48665ab440c3e258cc627f5bfd586e10ebc..27f848caa701216b3d3f996d972f87ecb0f95fe7 100644 (file)
@@ -1,3 +1,12 @@
+2007-05-17  Adam Treat  <adam@staikos.net>
+
+        Reviewed by George Staikos.
+
+        Implement forceLayoutForNonHTML
+
+        * WebCoreSupport/FrameLoaderClientQt.cpp:
+        (WebCore::FrameLoaderClientQt::forceLayoutForNonHTML):
+
 2007-05-17  Adam Treat  <adam@staikos.net>
 
         Reviewed by George Staikos.
index 8ab760240dca7016eb95b342a0485877dbdd39a0..6f200b577f7a1253114383bbfc5fc04a4ed1f798 100644 (file)
@@ -185,8 +185,12 @@ void FrameLoaderClientQt::forceLayout()
 
 
 void FrameLoaderClientQt::forceLayoutForNonHTML()
-{
-    notImplemented();
+{    
+    // This will never be the case unless we implement alternative views
+    // such as QPDFPage or something...
+    if (!canShowMIMEType(MimeTypeRegistry::getMIMETypeForExtension("html"))) {
+        forceLayout();
+    }
 }