2007-09-26 Mark Rowe <mrowe@apple.com>
authorbdash <bdash@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 27 Sep 2007 01:30:37 +0000 (01:30 +0000)
committerbdash <bdash@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 27 Sep 2007 01:30:37 +0000 (01:30 +0000)
        Qt build fix.

        * WebCoreSupport/FrameLoaderClientQt.cpp:
        (WebCore::FrameLoaderClientQt::objectContentType): Check for empty URL instead of invalid URL.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@25772 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebKitQt/ChangeLog
WebKitQt/WebCoreSupport/FrameLoaderClientQt.cpp

index 3edaefa..284ee05 100644 (file)
@@ -1,3 +1,10 @@
+2007-09-26  Mark Rowe  <mrowe@apple.com>
+
+        Qt build fix.
+
+        * WebCoreSupport/FrameLoaderClientQt.cpp:
+        (WebCore::FrameLoaderClientQt::objectContentType): Check for empty URL instead of invalid URL.
+
 2007-09-25  David Kilzer  <ddkilzer@webkit.org>
 
         Reviewed by Adam.
index 277b8ef..fdc6931 100644 (file)
@@ -862,7 +862,7 @@ ObjectContentType FrameLoaderClientQt::objectContentType(const KURL& url, const
     if (_mimeType == "application/x-qt-plugin" || _mimeType == "application/x-qt-styled-widget")
         return ObjectContentOtherPlugin;
 
-    if (!url.isValid())
+    if (url.isEmpty())
         return ObjectContentNone;
 
     String mimeType = _mimeType;