• darin's avatar
    WebCore: · b1961817
    darin authored
    	- moved all NSURL and CFURL use out of WebCore
    
            * kwq/KWQKURL.h: Remove getNSURL() and getNSURLFromString().
            * kwq/KWQKURL.mm: Ditto.
    
            * kwq/KWQKCookieJar.mm:
            (KWQKCookieJar::cookie): Pass an NSString instead of an NSURL.
            (KWQKCookieJar::setCookie): Ditto.
            * kwq/KWQKHTMLPart.mm:
            (KWQKHTMLPart::openURL): Ditto.
            (KWQKHTMLPart::openURLRequest): Ditto.
            (KWQKHTMLPart::submitForm): Ditto.
            (KWQKHTMLPart::urlSelected): Ditto.
            (KWQKHTMLPart::createPart): Ditto.
            (KWQKHTMLPart::redirectionTimerStartedOrStopped): Ditto.
            (KWQKHTMLPart::userAgent): Ditto.
            (KWQKHTMLPart::requestedURLString): Receive an NSString instead of an NSURL.
            * kwq/KWQKHTMLPartBrowserExtension.mm:
            (KHTMLPartBrowserExtension::createNewWindow): Pass an NSString instead of an NSURL.
            (KHTMLPartBrowserExtension::setIconURL): Ditto.
            (KHTMLPartBrowserExtension::setTypedIconURL): Ditto.
            * kwq/KWQKJavaAppletWidget.h: Remove use of NSURL, just use QString instead.
            * kwq/KWQKJavaAppletWidget.mm:
            (KJavaAppletWidget::KJavaAppletWidget): No need to set the QString to nil.
            (KJavaAppletWidget::~KJavaAppletWidget): No need to release the QString.
            (KJavaAppletWidget::showApplet): Pass an NSString instead of an NSURL.
            * kwq/KWQLoader.mm:
            (KWQServeRequest): Pass an NSString instead of an NSURL.
            (KWQCheckCacheObjectStatus): Ditto.
            * kwq/WebCoreBridge.h: Change all methods to use NSString instead of NSURL.
            * kwq/WebCoreBridge.mm:
            (-[WebCoreBridge openURL:reload:headers:]): Receive an NSString instead of an NSURL.
            (-[WebCoreBridge completeURLForDOMString:]): Return an NSString instead of an NSURL.
            (-[WebCoreBridge elementAtPoint:]): WebCoreElementLinkURL and WebCoreElementImageURL
    	are now strings.
            (-[WebCoreBridge URL]): Return an NSString instead of an NSURL.
            * kwq/WebCoreCookieAdapter.h: Change all methods to use NSString instead of NSURL.
            * kwq/WebCoreCookieAdapter.m:
            (-[WebCoreCookieAdapter cookiesForURL:]): Ditto.
            (-[WebCoreCookieAdapter setCookies:forURL:policyBaseURL:]): Ditto.
    
            * khtml/rendering/render_applet.cpp: (RenderApplet::processArguments):
    	Tweaked this file a tiny bit, mainly because header dependencies weren't working
    	and we need this file to be recompiled due to inline function changes.
    
    WebKit:
    
    	- update for change to WebCore API so it never uses NSURL
    
            * WebCoreSupport.subproj/WebBridge.m:
            (-[WebBridge createWindowWithURL:frameName:]): Take NSString instead of NSURL.
            (-[WebBridge startLoadingResource:withURL:]): Ditto.
            (-[WebBridge objectLoadedFromCacheWithURL:response:size:]): Ditto.
            (-[WebBridge reportClientRedirectToURL:delay:fireDate:]): Ditto.
            (-[WebBridge setIconURL:]): Ditto.
            (-[WebBridge setIconURL:withType:]): Ditto.
            (-[WebBridge loadURL:reload:triggeringEvent:isFormSubmission:]): Ditto.
            (-[WebBridge postWithURL:data:contentType:triggeringEvent:]): Ditto.
            (-[WebBridge createChildFrameNamed:withURL:renderPart:allowsScrolling:marginWidth:marginHeight:]): Ditto.
            (-[WebBridge userAgentForURL:]): Ditto.
            (-[WebBridge requestedURL]): Return NSString instead of NSURL.
            (-[WebBridge viewForPluginWithURL:attributes:baseURL:MIMEType:]): Take NSString instead of NSURL.
            (-[WebBridge viewForJavaAppletWithFrame:attributes:baseURL:]): Take NSString instead of NSURL.
    
            * WebCoreSupport.subproj/WebCookieAdapter.m:
            (-[WebCookieAdapter cookiesForURL:]): Take NSString instead of NSURL.
            (-[WebCookieAdapter setCookies:forURL:policyBaseURL:]): Ditto.
    
            * WebView.subproj/WebDataSourcePrivate.m:
            (-[WebDataSource _commitIfReady]): Pass NSString instead of NSURL.
            * WebView.subproj/WebFramePrivate.m:
            (-[WebFrame _continueFragmentScrollAfterNavigationPolicy:request:]): Pass NSString instead of NSURL
            (-[WebFrame _loadURL:loadType:triggeringEvent:isFormSubmission:]): Turn bridge URL into NSURL so we
    	can call _web_URLByRemovingFragment on it.
            * WebView.subproj/WebHTMLViewPrivate.m:
            (-[WebHTMLView _elementAtPoint:]): Convert NSString to NSURL when making the WebKit element dictionary.
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@2720 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    b1961817