WebCore:
authorweinig@apple.com <weinig@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 12 Dec 2007 08:13:01 +0000 (08:13 +0000)
committerweinig@apple.com <weinig@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 12 Dec 2007 08:13:01 +0000 (08:13 +0000)
        Build fix for Qt, Gtk, and Wx.

        * css/CSSParser.cpp:
        (WebCore::CSSParser::parseValue):
        * loader/win/FrameLoaderWin.cpp:
        (WebCore::FrameLoader::urlSelected):
        * platform/network/curl/ResourceHandleManager.cpp:
        (WebCore::parseDataUrl):
        (WebCore::ResourceHandleManager::startJob):
        * platform/network/win/CookieJarWin.cpp:
        (WebCore::setCookies):
        (WebCore::cookies):
        * platform/network/win/ResourceHandleWin.cpp:
        (WebCore::ResourceHandle::start):
        * platform/qt/PasteboardQt.cpp:
        (WebCore::Pasteboard::writeURL):

WebKit/gtk:

        Build fix.

        * WebCoreSupport/FrameLoaderClientGtk.cpp:
        (WebKit::FrameLoaderClient::dispatchDecidePolicyForNavigationAction):

WebKit/qt:

        Build fix.

        * Api/qwebnetworkinterface.cpp:
        (QWebNetworkRequestPrivate::init):
        * Api/qwebpage.cpp:
        (QWebPage::url):
        (QWebPageContext::QWebPageContext):
        * Api/qwebpagehistory.cpp:
        (QWebHistoryItem::originalUrl):
        (QWebHistoryItem::currentUrl):
        * WebCoreSupport/FrameLoaderClientQt.cpp:
        (WebCore::FrameLoaderClientQt::cannotShowURLError):
        (WebCore::FrameLoaderClientQt::interruptForPolicyChangeError):
        (WebCore::FrameLoaderClientQt::cannotShowMIMETypeError):
        (WebCore::FrameLoaderClientQt::fileDoesNotExistError):
        (WebCore::FrameLoaderClientQt::dispatchWillSendRequest):
        (WebCore::FrameLoaderClientQt::dispatchDidReceiveResponse):
        (WebCore::FrameLoaderClientQt::createPlugin):

WebKit/wx:

        Build fix.

        * WebKitSupport/ChromeClientWx.cpp:
        (WebCore::ChromeClientWx::createWindow):
        * WebKitSupport/FrameLoaderClientWx.cpp:
        (WebCore::FrameLoaderClientWx::dispatchDidStartProvisionalLoad):
        (WebCore::FrameLoaderClientWx::dispatchDidCommitLoad):
        (WebCore::FrameLoaderClientWx::dispatchDidFinishDocumentLoad):
        (WebCore::FrameLoaderClientWx::postProgressFinishedNotification):
        (WebCore::FrameLoaderClientWx::didChangeTitle):
        (WebCore::FrameLoaderClientWx::dispatchDecidePolicyForNavigationAction):

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

17 files changed:
WebCore/ChangeLog
WebCore/css/CSSParser.cpp
WebCore/loader/win/FrameLoaderWin.cpp
WebCore/platform/network/curl/ResourceHandleManager.cpp
WebCore/platform/network/win/CookieJarWin.cpp
WebCore/platform/network/win/ResourceHandleWin.cpp
WebCore/platform/qt/PasteboardQt.cpp
WebKit/gtk/ChangeLog
WebKit/gtk/WebCoreSupport/FrameLoaderClientGtk.cpp
WebKit/qt/Api/qwebnetworkinterface.cpp
WebKit/qt/Api/qwebpage.cpp
WebKit/qt/Api/qwebpagehistory.cpp
WebKit/qt/ChangeLog
WebKit/qt/WebCoreSupport/FrameLoaderClientQt.cpp
WebKit/wx/ChangeLog
WebKit/wx/WebKitSupport/ChromeClientWx.cpp
WebKit/wx/WebKitSupport/FrameLoaderClientWx.cpp

index 44cffbaa315155ac0082a9ed0934105f69c9bd64..e5c6b373b9c8c0cb2b473289b6b222fb8b590e9f 100644 (file)
@@ -1,3 +1,22 @@
+2007-12-12  Sam Weinig  <sam@webkit.org>
+
+        Build fix for Qt, Gtk, and Wx.
+
+        * css/CSSParser.cpp:
+        (WebCore::CSSParser::parseValue):
+        * loader/win/FrameLoaderWin.cpp:
+        (WebCore::FrameLoader::urlSelected):
+        * platform/network/curl/ResourceHandleManager.cpp:
+        (WebCore::parseDataUrl):
+        (WebCore::ResourceHandleManager::startJob):
+        * platform/network/win/CookieJarWin.cpp:
+        (WebCore::setCookies):
+        (WebCore::cookies):
+        * platform/network/win/ResourceHandleWin.cpp:
+        (WebCore::ResourceHandle::start):
+        * platform/qt/PasteboardQt.cpp:
+        (WebCore::Pasteboard::writeURL):
+
 2007-12-11  Dan Bernstein  <mitz@apple.com>
 
         Reviewed by Maciej Stachowiak.
index b0a844c93e25288a1e481c8ab15747279c5e3122..fc543a6a46e47ca55d9bee2a03576b41a0a9d8b7 100644 (file)
@@ -1089,7 +1089,7 @@ bool CSSParser::parseValue(int propId, bool important)
                 if (val->unit == CSSPrimitiveValue::CSS_URI) {
                     String value = parseURL(domString(val->string));
                     parsedValue = new CSSPrimitiveValue(
-                                    String(KURL(styleElement->baseURL().deprecatedString(), value.deprecatedString()).url()), 
+                                    KURL(styleElement->baseURL().deprecatedString(), value.deprecatedString()).string(), 
                                     CSSPrimitiveValue::CSS_URI);
                 } 
                 
index 3b108cdab5c39ac839d38bf25c00dbf271ed3c01..66aa6ff66d309a48dbc466fc9b6bb76bf5d4c8ee 100644 (file)
@@ -39,7 +39,7 @@ void FrameLoader::urlSelected(const FrameLoadRequest& request, Event* /*triggeri
 {
     FrameWin* frameWin = static_cast<FrameWin*>(m_frame);
     if (frameWin->client())
-        frameWin->client()->openURL(request.resourceRequest().url().url(), request.lockHistory());
+        frameWin->client()->openURL(request.resourceRequest().url().string(), request.lockHistory());
 }
 
 void FrameLoader::submitForm(const FrameLoadRequest& request, Event*)
index 936c11446225bf39c6faca2d408803704d88dfac..dbe90fb6c2daefb7e88ef0cecbb67e4728e28dd2 100644 (file)
@@ -358,7 +358,7 @@ bool ResourceHandleManager::startScheduledJobs()
 
 static void parseDataUrl(ResourceHandle* handle)
 {
-    DeprecatedString data = handle->request().url().url();
+    DeprecatedString data = handle->request().url().deprecatedString();
 
     ASSERT(data.startsWith("data:", false));
 
@@ -418,7 +418,7 @@ void ResourceHandleManager::startJob(ResourceHandle* job)
     }
 
     ResourceHandleInternal* d = job->getInternal();
-    DeprecatedString url = kurl.url();
+    DeprecatedString url = kurl.deprecatedString();
 
     if (kurl.isLocalFile()) {
         DeprecatedString query = kurl.query();
@@ -491,7 +491,7 @@ void ResourceHandleManager::startJob(ResourceHandle* job)
     // timeout will occur and do curl_multi_perform
     if (ret && ret != CURLM_CALL_MULTI_PERFORM) {
 #ifndef NDEBUG
-        printf("Error %d starting job %s\n", ret, job->request().url().url().ascii());
+        printf("Error %d starting job %s\n", ret, job->request().url().deprecatedString().ascii());
 #endif
         job->cancel();
         return;
index 2cc77e07e42dbfcfe476ff64994d22592f636889..d6085f22d9eff1dd4dcd4dcb49001f664128a597 100644 (file)
@@ -74,7 +74,7 @@ void setCookies(const KURL& url, const KURL& policyURL, const String& value)
     CFHTTPCookieStorageSetCookies(defaultCookieStorage, cookiesCF.get(), urlCF.get(), policyURLCF.get());
 #else
     // FIXME: Deal with the policy URL.
-    DeprecatedString str = url.url();
+    DeprecatedString str = url.deprecatedString();
     str.append((UChar)'\0');
     DeprecatedString val = value.deprecatedString();
     val.append((UChar)'\0');
@@ -109,7 +109,7 @@ String cookies(const KURL& url)
 
     return (CFStringRef)CFDictionaryGetValue(headerCF.get(), s_cookieCF);
 #else
-    DeprecatedString str = url.url();
+    DeprecatedString str = url.deprecatedString();
     str.append((UChar)'\0');
 
     DWORD count = str.length();
index 2ffe14a83a3dcf2a3da5b84996b8b70ad0c5ba68..260652e08e9d7cd579ac306c6f8afd1671238d9b 100644 (file)
@@ -381,7 +381,7 @@ bool ResourceHandle::start(Frame* frame)
                                          INTERNET_SERVICE_HTTP,
                                          flags, (DWORD_PTR)d->m_jobId);
         } else {
-            DeprecatedString urlStr = url().url();
+            DeprecatedString urlStr = url().deprecatedString();
             int fragmentIndex = urlStr.find('#');
             if (fragmentIndex != -1)
                 urlStr = urlStr.left(fragmentIndex);
index 697f5e79e990ce7335595eb79e9b2f7da1dcc196..22806ea72aa24d8d2ea402af45287a03549e65b8 100644 (file)
@@ -107,7 +107,7 @@ void Pasteboard::writeURL(const KURL& _url, const String&, Frame*)
     ASSERT(!_url.isEmpty());
 
     QMimeData* md = new QMimeData;
-    QString url = _url.url();
+    QString url = _url.string();
     md->setText(url);
     md->setUrls(QList<QUrl>() << QUrl(url));
     QApplication::clipboard()->setMimeData(md, QClipboard::Clipboard);
index c6803859b0f856029494e2feae376d93bb8cf2ec..b373d5d02450325f86cfb57d501b30802bd90903 100644 (file)
@@ -1,3 +1,10 @@
+2007-12-12  Sam Weinig  <sam@webkit.org>
+
+        Build fix.
+
+        * WebCoreSupport/FrameLoaderClientGtk.cpp:
+        (WebKit::FrameLoaderClient::dispatchDecidePolicyForNavigationAction):
+
 2007-12-11  George Wright  <george.wright@collabora.co.uk>
 
         Reviewed by Alp Toker.
index ea54d85ac4097ce43e5cf71b4f583ffd6dba5f82..5a2c6df2d99ee815d34b1e3a631315babb2d4e77 100644 (file)
@@ -255,7 +255,7 @@ void FrameLoaderClient::dispatchDecidePolicyForNavigationAction(FramePolicyFunct
         return;
 
     WebKitWebView* page = getViewFromFrame(m_frame);
-    WebKitNetworkRequest* request = webkit_network_request_new(resourceRequest.url().url().utf8().data());
+    WebKitNetworkRequest* request = webkit_network_request_new(resourceRequest.url().string().utf8().data());
     WebKitNavigationResponse response;
 
     g_signal_emit_by_name(page, "navigation-requested", m_frame, request, &response);
index 717f6a0bc3b9f31e17bfac169e27f69e0d4f0645..9a72c84e33323204a5f904fd519b83e24c05bbbc 100644 (file)
@@ -106,7 +106,7 @@ static QByteArray decodePercentEncoding(const QByteArray& input)
 void QWebNetworkRequestPrivate::init(const WebCore::ResourceRequest &resourceRequest)
 {
     KURL url = resourceRequest.url();
-    QUrl qurl = QString(url.url());
+    QUrl qurl = QString(url.string());
     init(resourceRequest.httpMethod(), qurl, &resourceRequest);
 }
 
index 0f8b6136c84737e67e61cd36c2ee470928109a7b..86b22361e37024cfa158dfb34ce1ac0ed539e087 100644 (file)
@@ -345,7 +345,7 @@ void QWebPage::open(const QWebNetworkRequest &req)
 
 QUrl QWebPage::url() const
 {
-    return QUrl((QString)mainFrame()->d->frame->loader()->url().url());
+    return QUrl((QString)mainFrame()->d->frame->loader()->url().string());
 }
 
 QString QWebPage::title() const
@@ -1278,8 +1278,8 @@ QWebPageContext::QWebPageContext(const WebCore::HitTestResult &hitTest)
 {
     d->pos = hitTest.point();
     d->text = hitTest.textContent();
-    d->linkUrl = hitTest.absoluteLinkURL().url();
-    d->imageUrl = hitTest.absoluteImageURL().url();
+    d->linkUrl = hitTest.absoluteLinkURL().string();
+    d->imageUrl = hitTest.absoluteImageURL().string();
     d->innerNonSharedNode = hitTest.innerNonSharedNode();
     WebCore::Image *img = hitTest.image();
     if (img) {
index c6a2b2b8b0027ab04cf44d751539dc7085ebe8a9..2c9522372e7846f0a7af8f46228126c64203aae0 100644 (file)
@@ -45,13 +45,13 @@ QWebHistoryItem::~QWebHistoryItem()
 
 QUrl QWebHistoryItem::originalUrl() const
 {
-    return QUrl(d->item->originalURL().url());
+    return QUrl(d->item->originalURL().string());
 }
 
 
 QUrl QWebHistoryItem::currentUrl() const
 {
-    return QUrl(d->item->url().url());
+    return QUrl(d->item->url().string());
 }
 
 
index 9a4bdf8834ec543a560d3d2ee661656403241816..04e788adf663be16367d3ac6fd3d47285b2594d9 100644 (file)
@@ -1,3 +1,24 @@
+2007-12-12  Sam Weinig  <sam@webkit.org>
+
+        Build fix.
+
+        * Api/qwebnetworkinterface.cpp:
+        (QWebNetworkRequestPrivate::init):
+        * Api/qwebpage.cpp:
+        (QWebPage::url):
+        (QWebPageContext::QWebPageContext):
+        * Api/qwebpagehistory.cpp:
+        (QWebHistoryItem::originalUrl):
+        (QWebHistoryItem::currentUrl):
+        * WebCoreSupport/FrameLoaderClientQt.cpp:
+        (WebCore::FrameLoaderClientQt::cannotShowURLError):
+        (WebCore::FrameLoaderClientQt::interruptForPolicyChangeError):
+        (WebCore::FrameLoaderClientQt::cannotShowMIMETypeError):
+        (WebCore::FrameLoaderClientQt::fileDoesNotExistError):
+        (WebCore::FrameLoaderClientQt::dispatchWillSendRequest):
+        (WebCore::FrameLoaderClientQt::dispatchDidReceiveResponse):
+        (WebCore::FrameLoaderClientQt::createPlugin):
+
 2007-12-07  Alexey Proskuryakov  <ap@webkit.org>
 
         Reviewed by Darin.
index 310dd882e68292961f2384172644b4dde1cc27dc..3b7241dcbeee6729a1365e06a11c038fbb28d60b 100644 (file)
@@ -669,22 +669,22 @@ WebCore::ResourceError FrameLoaderClientQt::blockedError(const WebCore::Resource
 
 WebCore::ResourceError FrameLoaderClientQt::cannotShowURLError(const WebCore::ResourceRequest& request)
 {
-    return ResourceError("Error", WebKitErrorCannotShowURL, request.url().url(), QObject::tr("QWebFrame", "Cannot show URL"));
+    return ResourceError("Error", WebKitErrorCannotShowURL, request.url().string(), QObject::tr("QWebFrame", "Cannot show URL"));
 }
 
 WebCore::ResourceError FrameLoaderClientQt::interruptForPolicyChangeError(const WebCore::ResourceRequest& request)
 {
-    return ResourceError("Error", WebKitErrorFrameLoadInterruptedByPolicyChange, request.url().url(), QObject::tr("QWebFrame", "Frame load interruped by policy change"));
+    return ResourceError("Error", WebKitErrorFrameLoadInterruptedByPolicyChange, request.url().string(), QObject::tr("QWebFrame", "Frame load interruped by policy change"));
 }
 
 WebCore::ResourceError FrameLoaderClientQt::cannotShowMIMETypeError(const WebCore::ResourceResponse& response)
 {
-    return ResourceError("Error", WebKitErrorCannotShowMIMEType, response.url().url(), QObject::tr("QWebFrame", "Cannot show mimetype"));
+    return ResourceError("Error", WebKitErrorCannotShowMIMEType, response.url().string(), QObject::tr("QWebFrame", "Cannot show mimetype"));
 }
 
 WebCore::ResourceError FrameLoaderClientQt::fileDoesNotExistError(const WebCore::ResourceResponse& response)
 {
-    return ResourceError("Error", -998 /* ### */, response.url().url(), QObject::tr("QWebFrame", "File does not exist"));
+    return ResourceError("Error", -998 /* ### */, response.url().string(), QObject::tr("QWebFrame", "File does not exist"));
 }
 
 bool FrameLoaderClientQt::shouldFallBack(const WebCore::ResourceError&)
@@ -712,7 +712,7 @@ void FrameLoaderClientQt::assignIdentifierToInitialRequest(unsigned long identif
 void FrameLoaderClientQt::dispatchWillSendRequest(WebCore::DocumentLoader*, unsigned long, WebCore::ResourceRequest& request, const WebCore::ResourceResponse& response)
 {
     // seems like the Mac code doesn't do anything here by default neither
-    //qDebug() << "FrameLoaderClientQt::dispatchWillSendRequest" << request.isNull() << request.url().url();
+    //qDebug() << "FrameLoaderClientQt::dispatchWillSendRequest" << request.isNull() << request.url().string`();
 }
 
 void FrameLoaderClientQt::dispatchDidReceiveAuthenticationChallenge(DocumentLoader*, unsigned long, const AuthenticationChallenge&)
@@ -730,7 +730,7 @@ void FrameLoaderClientQt::dispatchDidReceiveResponse(WebCore::DocumentLoader*, u
 
     m_response = response;
     m_firstData = true;
-    //qDebug() << "    got response from" << response.url().url();
+    //qDebug() << "    got response from" << response.url().string();
 }
 
 void FrameLoaderClientQt::dispatchDidReceiveContentLength(WebCore::DocumentLoader*, unsigned long, int)
@@ -915,7 +915,7 @@ Widget* FrameLoaderClientQt::createPlugin(const IntSize&, Element* element, cons
     for (int i = 0; i < paramValues.size(); ++i)
         values.append(paramValues[i]);
 
-    QString urlStr(url.url());
+    QString urlStr(url.string());
     QUrl qurl = urlStr;
 
     QObject *object = 0;
index b83e3f47b54fd5117cebb5c9aad91d97c8afd818..78b449831d6fe8026c2a60dd35b54e443c5951ab 100644 (file)
@@ -1,3 +1,17 @@
+2007-12-12  Sam Weinig  <sam@webkit.org>
+
+        Build fix.
+
+        * WebKitSupport/ChromeClientWx.cpp:
+        (WebCore::ChromeClientWx::createWindow):
+        * WebKitSupport/FrameLoaderClientWx.cpp:
+        (WebCore::FrameLoaderClientWx::dispatchDidStartProvisionalLoad):
+        (WebCore::FrameLoaderClientWx::dispatchDidCommitLoad):
+        (WebCore::FrameLoaderClientWx::dispatchDidFinishDocumentLoad):
+        (WebCore::FrameLoaderClientWx::postProgressFinishedNotification):
+        (WebCore::FrameLoaderClientWx::didChangeTitle):
+        (WebCore::FrameLoaderClientWx::dispatchDecidePolicyForNavigationAction):
+
 2007-12-07  Alexey Proskuryakov  <ap@webkit.org>
 
         Reviewed by Darin.
index 63f64e339454414514f6ee9ebb490156a6a9744e..a528ac666a415a9ee088cc4e726cab0e4e40ad2d 100644 (file)
@@ -110,7 +110,7 @@ Page* ChromeClientWx::createWindow(Frame*, const FrameLoadRequest& request, cons
     wxWebFrame* newFrame = new wxWebFrame(wxTheApp->GetAppName());
     
     if (newFrame->webview) {
-        newFrame->webview->LoadURL(request.resourceRequest().url().url());
+        newFrame->webview->LoadURL(request.resourceRequest().url().string());
         newFrame->Show(true);
 
         WebViewPrivate* impl = newFrame->webview->m_impl;
index dd4d0f655e25e6831de3ffaf2a9547f750dbbc21..40ad721c1407d6994677e3d24dcaafe9fb3fec00 100644 (file)
@@ -297,7 +297,7 @@ void FrameLoaderClientWx::dispatchDidStartProvisionalLoad()
     if (target) {
         wxWebViewStateChangedEvent wkEvent(target);
         wkEvent.SetState(wxWEBVIEW_STATE_NEGOTIATING);
-        wkEvent.SetURL(m_frame->loader()->provisionalDocumentLoader()->request().url().url());
+        wkEvent.SetURL(m_frame->loader()->provisionalDocumentLoader()->request().url().string());
         target->GetEventHandler()->ProcessEvent(wkEvent);
     }
 }
@@ -317,7 +317,7 @@ void FrameLoaderClientWx::dispatchDidCommitLoad()
     if (target) {
         wxWebViewStateChangedEvent wkEvent(target);
         wkEvent.SetState(wxWEBVIEW_STATE_TRANSFERRING);
-        wkEvent.SetURL(m_frame->loader()->documentLoader()->request().url().url());
+        wkEvent.SetURL(m_frame->loader()->documentLoader()->request().url().string());
         target->GetEventHandler()->ProcessEvent(wkEvent);
     }
 }
@@ -328,7 +328,7 @@ void FrameLoaderClientWx::dispatchDidFinishDocumentLoad()
     if (target) {
         wxWebViewStateChangedEvent wkEvent(target);
         wkEvent.SetState(wxWEBVIEW_STATE_STOP);
-        wkEvent.SetURL(m_frame->loader()->URL().url());
+        wkEvent.SetURL(m_frame->loader()->url().string());
         target->GetEventHandler()->ProcessEvent(wkEvent);
     }
 }
@@ -400,7 +400,7 @@ void FrameLoaderClientWx::postProgressFinishedNotification()
     if (target) {
         wxWebViewStateChangedEvent wkEvent(target);
         wkEvent.SetState(wxWEBVIEW_STATE_STOP);
-        wkEvent.SetURL(m_frame->loader()->url().url());
+        wkEvent.SetURL(m_frame->loader()->url().string());
         target->GetEventHandler()->ProcessEvent(wkEvent);
     }
 }
@@ -432,7 +432,7 @@ void FrameLoaderClientWx::willChangeTitle(DocumentLoader*)
 
 void FrameLoaderClientWx::didChangeTitle(DocumentLoader *l)
 {
-    setTitle(l->title(), l->URL());
+    setTitle(l->title(), l->url());
 }
 
 
@@ -775,7 +775,7 @@ void FrameLoaderClientWx::dispatchDecidePolicyForNavigationAction(FramePolicyFun
     if (target) {
         wxWebViewBeforeLoadEvent wkEvent(target);
         wkEvent.SetNavigationType(wxNavTypeFromWebNavType(action.type()));
-        wkEvent.SetURL(request.url().url());
+        wkEvent.SetURL(request.url().string());
         
         target->GetEventHandler()->ProcessEvent(wkEvent);
         if (wkEvent.IsCancelled())