1. 25 Apr, 2002 2 commits
    • darin's avatar
      WebCore: · 366d0866
      darin authored
      	Rework plugin code to prepare to move more of it into WebKit.
      
      	* khtml/rendering/render_applet.cpp:
      	(RenderApplet::RenderApplet): Create a widget for the applet using
      	the new simpler API.
      
      	* kwq/kdecore/kconfig.h:
      	* kwq/KWQKConfigBase.mm: Eliminate KConfigBase.
      	Set things up so we are poised to handle the other non-plugin
      	config keys easily in the future.
      
      	* kwq/KWQKHTMLPart.mm: (KHTMLPart::requestObject): Use the new simpler
      	IFPluginWidgetCreate API instead of the older WCPluginWidget one.
      
      	* kwq/qt/qstring.h: Add simpler conversions to/from NSString.
      	* kwq/KWQString.mm: (QString::fromNSString): New.
      
      	* kwq/WCPluginWidget.h: Made this API simpler both for the C++
      	side and the Objective-C side. There's now no class, and only one
      	function that needs to be supplied (normally by WebKit).
      	* kwq/WCJavaAppletWidget.h: Same thing for the Java case.
      
      	* kwq/WCJavaAppletWidget.mm:
      	(IFSetJavaAppletViewCreationFunction): New.
      	(IFJavaAppletWidgetCreate): New. Most of the code that was in here
      	is now moved into WebKit.
      	* kwq/WCPluginWidget.mm:
      	(IFSetPluginViewCreationFunction): New.
      	(IFPluginWidgetCreate): New. Most of the code that was in here
      	is now moved into WebKit.
      
      	* libwebcore.exp: Update for new function names.
      
      WebKit:
      
      	Rework plugin code to prepare to move more of here from WebCore.
      
      	* Plugins.subproj/IFPluginView.mm:
      	(IFPluginViewCreate): New. Does all the work of creating an NSView
      	for a plug-in, including stuff previously done in WebCore.
      	(IFJavaAppletViewCreate): Same as above, for Java applets.
      	(+[IFPluginView load]): Set up the function pointers using the new
      	improved WebCore API.
      
      	* Plugins.subproj/IFNullPluginView.mm:
      	(-[IFNullPluginView load]): Remove this setup because now there's
      	no separate call to set up a null plug-in.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1075 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      366d0866
    • sullivan's avatar
      Fixed 2911915 (Exception in -[IFWebView mouseMoved]) · db94bcf5
      sullivan authored
      	* WebView.subproj/IFWebView.mm:
      	(-[IFWebView mouseDown:]): Changed "mouseUp" to "mouseDown"
      	in exception message.
      
      	(-[IFWebView mouseMoved:]): Removed bogus event-type checking
      	that caused this method to (always?) throw an exception when
      	invoked.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1074 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      db94bcf5
  2. 24 Apr, 2002 4 commits
    • cblu's avatar
      Renamed [IFWebDataSource frame] to [IFWebDataSource webFrame] · 72c37f02
      cblu authored
              Labyrinth/WebBrowser/ChangeLog
              Labyrinth/WebBrowser/FrameProgressEntry.m
              Labyrinth/WebBrowser/IFWebFrameAdditions.m
              Labyrinth/WebBrowser/LoadProgressMonitor.m
              Labyrinth/WebBrowser/LocationChangeHandler.m
              Labyrinth/WebBrowser/WebController.m
              Labyrinth/WebBrowser/WebBrowser.pbproj/project.pbxproj
              Labyrinth/WebCore/ChangeLog
              Labyrinth/WebCore/kwq/KWQKHTMLPart.mm
              Labyrinth/WebCore/kwq/external.h Labyrinth/WebKit/ChangeLog
              Labyrinth/WebKit/WebKit.pbproj/project.pbxproj
              Labyrinth/WebKit/WebView.subproj/IFBaseWebControllerPrivate.mm
              Labyrinth/WebKit/WebView.subproj/IFMainURLHandleClient.mm
              Labyrinth/WebKit/WebView.subproj/IFWebDataSource.h
              Labyrinth/WebKit/WebView.subproj/IFWebDataSource.mm
              Labyrinth/WebKit/WebView.subproj/IFWebDataSourcePrivate.mm
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1073 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      72c37f02
    • rjw's avatar
      Changed ordering of messages so activity viewer doesn't get -1 bytesSoFar · 452d45d3
      rjw authored
              for cancelled messages.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1072 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      452d45d3
    • sheridan's avatar
      added release markers to the changelogs · d06155f5
      sheridan authored
      "Alexander 0.3c2 (v1)"
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1070 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d06155f5
    • darin's avatar
      Get rid of all NEED_BOGUS_XXX. · 90df6562
      darin authored
      	* khtml/java/Makefile.am: Remove -DNEED_BOGUS_TEXTSTREAMS and
      	-DNEED_BOGUS_X_DEFINES.
      	* khtml/rendering/Makefile.am: Remove -DNEED_BOGUS_X_DEFINES.
      	* khtml/xml/Makefile.am: Remove -DNEED_BOGUS_TEXTSTREAMS.
      	* kwq/Makefile.am: Remove -DNEED_BOGUS_X_DEFINES and KWQKJavaEmbed.mm.
      	* kwq/KWQKJavaEmbed.mm: Removed.
      
      	* kwq/KWQDef.h: Remove XEvent define (inside NEED_BOGUS_X_DEFINES).
      
      	* kwq/qt/qtextstream.h: Don't look at NEED_BOGUS_TEXTSTREAMS.
      	* kwq/KWQtextstream.mm: Don't look at NEED_BOGUS_TEXTSTREAMS.
      
      	* khtml/java/javaembed.h: Made this just a QWidget typedef for now.
      	* khtml/java/kjavaappletwidget.cpp: ifdef out the unused setWindow function.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1069 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      90df6562
  3. 23 Apr, 2002 5 commits
    • darin's avatar
      * khtml/css/css_valueimpl.cpp: · f552cb6c
      darin authored
              (CSSPrimitiveValueImpl::computeLengthFloat):
              * khtml/css/cssstyleselector.cpp:
              (CSSStyleSelector::computeFontSizes):
              Remove our 72/96 dpi changes. They weren't doing much good.
              But this doesn't fix all the 72/96 dpi issues. It's just the start.
      
              * kwq/khtml/khtml_settings.h:
              * kwq/KWQKHTMLSettings.mm:
              Remove some unused stuff: charset(), setCharset(), availableFamilies(),
              fontSizes(), SCREEN_RESOLUTION.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1068 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f552cb6c
    • cblu's avatar
      WebKit: · 1e2cf4f2
      cblu authored
              * WebKit.pbproj/project.pbxproj:
      
              Took IFDownloadHandler.h out of the public headers.
      
              * WebView.subproj/IFLocationChangeHandler.h:
      
              Removed deprecated methods.
      
              * WebView.subproj/IFWebFrame.mm:
              (-[IFWebFrame setProvisionalDataSource:]):
      
              Don't call locationChangeStarted anymore.
      
      WebBrowser:
              * LocationChangeHandler.m:
      
              Removed locationChangeStarted and downloadingWithHandler as they are
              deprecated.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1067 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      1e2cf4f2
    • cblu's avatar
      * MIME.subproj/IFDownloadHandler.h: · 0ef249b6
      cblu authored
              * MIME.subproj/IFDownloadHandler.m: Removed.
              * MIME.subproj/IFDownloadHandler.mm: Added.
              (-[IFDownloadHandler initWithDataSource:]):
              (-[IFDownloadHandler dealloc]):
              * MIME.subproj/IFDownloadHandlerPrivate.h: Removed.
              * MIME.subproj/IFDownloadHandlerPrivate.m: Removed.
      
              Made IFDownloadHandler a private class that retains the data source
              and saves the data to disk.
      
              * WebKit.pbproj/project.pbxproj:
      
              Removed IFDownloadHandlerPrivate
      
              * WebView.subproj/IFBaseWebControllerPrivate.mm:
              (-[IFBaseWebController _mainReceivedProgress:forResource:fromDataSource:]):
      
              Only send locationChangeCommitted if its shown inline.
      
              * WebView.subproj/IFMainURLHandleClient.mm:
              (-[IFMainURLHandleClient IFURLHandleResourceDidFinishLoading:data:]):
      
              Save data with IFDownloadHandler
      
              (-[IFMainURLHandleClient IFURLHandle:resourceDataDidBecomeAvailable:]):
      
              If its a download, set the provisionalDataSource on the frame to nil.
      
              * WebView.subproj/IFWebDataSource.h:
              * WebView.subproj/IFWebDataSource.mm:
              (-[IFWebDataSource webFrame]):
              (-[IFWebDataSource pageTitle]):
              (-[IFWebDataSource contentPolicy]):
      
              Added some accessor methods. Spelling fix pageTitle.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1066 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0ef249b6
    • kocienda's avatar
      2002-04-23 Kenneth Kocienda <kocienda@apple.com> · fbe7d279
      kocienda authored
      	Reviewed by: Darin Adler
      
              Fix for Radar 2908403 (Fix names in WebFoundation extensions code)
      
              Extensions code in WebFoundation now is in its own namespace.
              Where we have added categories to existing Foundation and AppKit
              classes, the categories begin with the IF prefix. All method names
              begin with the _IF_ prefix.
      
              The files here were changed to use the new names.
      
              In addition, private methods on publicly WebFoundation classes
              now have an underscopre prepended to their names.
      
              * Tests/CookieManager/wkcookiemanager-test.m:
              (main)
              * Tests/WebFoundation-Misc/ifnsarrayextensions-test.m:
              (main)
              * Tests/WebFoundation-Misc/ifnscalendardateextensions-test.m:
              (main)
              * Tests/WebFoundation-Misc/ifnsobjectextensions-test.m:
              (main)
              * Tests/WebFoundation-Misc/ifnsstringextensions-test.m:
              (main)
              * Tests/WebFoundation-Misc/ifnsthreadextensions-test.m:
              (-[ThreadTest run:]):
              (main)
              * Tools/HotSpots/hotspots.m:
              (ProcessLine)
              (SortByValueInDictionary):
              (DumpTables)
              (PrintCallGraphForFrame):
              * Tools/wftool/main.m:
              (main)
      
              * WebCore/kwq/KWQTextArea.mm:
              (-[KWQTextArea paragraphs])
      
              * WebBrowser/AppController.m:
              (-[AppController _addHistoryToMenu])
              * WebBrowser/BrowserWindow.m:
              (-[BrowserWindow controlTextDidEndEditing:])
              * WebBrowser/GlobalHistory.m:
              (-[GlobalHistory outlineView:objectValueForTableColumn:byItem:])
              (-[GlobalHistory expandToday])
      
              * WebFoundation/AuthenticationManager.subproj/IFAuthenticationHandlerDispatcher.m:
              (-[IFAuthenticationHandlerDispatcher checkIfReadyToStartAuthentication:]):
              * WebFoundation/AuthenticationManager.subproj/IFAuthenticationManager.m:
              (-[IFAuthenticationManager removeAuthenticationHandler:]):
              (IFNSURLRemoveAnythingAfterPath):
              (IFNSURLCanonicalRoot):
              (AddAuthenticationHeader):
              (-[IFAuthenticationManager _invokeHandlersWithURL:realm:forRequest:withCallback:context:]):
              (-[IFAuthenticationManager _tryRequest:]):
              (-[IFAuthenticationManager _retryWaitingRequests]):
              (-[IFAuthenticationManager IFAuthenticationRequest:authenticationDone:]):
              (-[IFAuthenticationManager _addCredentialsToInitialHTTPRequest:]):
              (-[IFAuthenticationManager _checkForAuthenticationFailureInHTTPResponse:withURL:]):
              (-[IFAuthenticationManager _addCredentialsToRetryHTTPRequest:afterFailureResponse:withCallback:context:]):
              (-[IFAuthenticationManager _cancelAddCredentialsToRetryHTTPRequest:]):
              * WebFoundation/AuthenticationManager.subproj/IFAuthenticationManagerPrivate.h:
              * WebFoundation/AuthenticationManager.subproj/IFAuthenticationRequest.m:
              (-[IFAuthenticationRequest _readyToStartAuthenticationDone:]):
              * WebFoundation/AuthenticationManager.subproj/IFAuthenticationRequestPrivate.h:
              * WebFoundation/CacheLoader.subproj/IFFileURLHandle.m:
              (+[IFFileURLHandle canInitWithURL:]):
              (-[IFFileURLHandle contentLength]):
              * WebFoundation/CacheLoader.subproj/IFFileURLProtocolHandler.m:
              (+[IFFileURLProtocolHandler canInitWithURL:]):
              * WebFoundation/CacheLoader.subproj/IFHTTPURLHandle.m:
              (+[IFHTTPURLHandle canInitWithURL:]):
              (-[IFHTTPURLHandle setResponseHeaders:]):
              * WebFoundation/CacheLoader.subproj/IFHTTPURLProtocolHandler.m:
              (+[IFHTTPURLProtocolHandler canInitWithURL:]):
              (-[IFHTTPURLProtocolHandler endLoadInBackground]):
              (-[IFHTTPURLProtocolHandler dealloc]):
              (-[IFHTTPURLProtocolHandler requestURL]):
              (-[IFHTTPURLProtocolHandler addIfModifiedSinceHeader:]):
              (-[IFHTTPURLProtocolHandler addCookieHeaders:]):
              (-[IFHTTPURLProtocolHandler addAuthenticationHeaders:andCall:]):
              (-[IFHTTPURLProtocolHandler addRequestMessageBody:]):
              (-[IFHTTPURLProtocolHandler performHTTPHeaderRead:]):
              (-[IFHTTPURLProtocolHandler setRedirectedURL:]):
              (-[IFHTTPURLProtocolHandler cacheObjectIsValid:]):
              (-[IFHTTPURLProtocolHandler cacheObjectRequiresRevalidation:]):
              (-[IFHTTPURLProtocolHandler shouldCacheResourceData]):
              (-[IFHTTPURLProtocolHandler parseCacheControlAttributes:]):
              * WebFoundation/CacheLoader.subproj/IFURLHandle.m:
              (_sendCallbacks):
              (-[IFURLHandleInstanceVariables initWithHandle:]):
              (-[IFURLHandle cancelLoadInBackground]):
              (+[IFURLHandle initialize]):
              (-[IFURLHandle _submittedAttributes]):
              (-[IFURLHandle _setAttribute:forKey:]):
              (-[IFURLHandle _setContentLength:]):
              (-[IFURLHandle _loadType]):
              (-[IFURLHandle _backgroundLoadDidBegin]):
              (-[IFURLHandle _backgroundLoadDidBegin:]):
              (-[IFURLHandle _didLoadData:]):
              (-[IFURLHandle _backgroundLoadComplete]):
              (-[IFURLHandle _backgroundLoadFailedWithResultCode:]):
              (-[IFURLHandle _didRedirectToURL:]):
              (+[IFURLHandle _registerDefaults]):
              (-[IFURLHandle _cacheable]):
              (-[IFURLHandle _setCacheable:]):
              (-[IFURLHandle _setStatusCode:]):
              (-[IFURLHandle _setResultCode:]):
              (-[IFURLHandle _setFinalURL:]):
              (-[IFURLHandle _postCallback:]):
              (-[IFURLHandle _sendCallbacks]):
              (-[IFURLHandle _notifyClientsDidBeginLoading]):
              (-[IFURLHandle _notifyClientsDidCancelLoading]):
              (-[IFURLHandle _notifyClientsDataDidBecomeAvailable]):
              (-[IFURLHandle _notifyClientsDidFinishLoading]):
              (-[IFURLHandle _notifyClientsDidFailLoading]):
              (-[IFURLHandle _notifyClientsDidRedirectToURL]):
              * WebFoundation/CacheLoader.subproj/IFURLHandleC.m:
              (IFURLHandleBackgroundLoadDidBegin):
              (IFURLHandleBackgroundLoadComplete):
              (IFURLHandleBackgroundLoadFailedWithResultCode):
              (IFURLHandleDidRedirectToURL):
              * WebFoundation/CacheLoader.subproj/IFURLHandlePrivate.h:
              * WebFoundation/CacheLoader.subproj/IFURLLoad.m:
              (-[IFURLLoad doubleAttributeForKey:]):
              (-[IFURLLoad updateHandles]):
              (-[IFURLLoad succeeded]):
              (-[IFURLLoad failedWithResultCode:]):
              (+[IFURLLoad initialize]):
              (-[IFURLLoad didBeginLoading:]):
              * WebFoundation/CacheLoader.subproj/IFURLLoadManager.m:
              (-[IFURLLoadManager initWithDefaultStack]):
              (-[IFURLLoadManager requestWithURLHandle:]):
              (-[IFURLLoadManager _syncCachesNotification:]):
              * WebFoundation/CookieManager.subproj/IFCookie.m:
              (setDefaultsFromOriginURL):
              (setDomain):
              (-[IFCookie _cookieToV0HeaderSegment]):
              (+[IFCookie requestHeadersFromCookieArray:]):
              (+[IFCookie cookieWithV0Spec:forURL:]):
              (+[IFCookie cookieArrayFromResponseHeaders:forURL:]):
              (-[IFCookie compareForHeaderOrder:]):
              * WebFoundation/CookieManager.subproj/IFCookieManager.m:
              (-[IFCookieManager cookieRequestHeadersForURL:]):
              (-[IFCookieManager _cookieRequestHeadersForURL:withExtraCookies:]):
              (-[IFCookieManager description]):
              * WebFoundation/CookieManager.subproj/IFCookieManagerPrivate.h:
              * WebFoundation/Database.subproj/IFURLFileDatabase.m:
              (-[IFURLFileDatabase removeAllObjects]):
              (-[IFURLFileDatabase performSetObject:forKey:]):
              (-[IFURLFileDatabase open]):
              * WebFoundation/Misc.subproj/IFMultipartForm.m:
              (-[IFMultipartForm encodeMultipartForm]):
              * WebFoundation/Misc.subproj/IFNSArrayExtensions.h:
              * WebFoundation/Misc.subproj/IFNSArrayExtensions.m:
              (-[NSArray _IF_mappedArrayWithSelector:]):
              (-[NSArray _IF_mappedArrayWithFunction:context:]):
              (-[NSArray _IF_filteredArrayWithSelector:]):
              (-[NSArray _IF_arrayByRemovingIfSelector:]):
              (-[NSArray _IF_filteredArrayWithSelector:withObject:]):
              (-[NSArray _IF_doesEveryElementSatisfyPredicate:]):
              (-[NSArray _IF_indexOfObjectSatisfyingPredicate:withObject:]):
              (-[NSArray _IF_encodeWWWFormURLData]):
              * WebFoundation/Misc.subproj/IFNSCalendarDateExtensions.h:
              * WebFoundation/Misc.subproj/IFNSCalendarDateExtensions.m:
              (-[NSCalendarDate _IF_compareDay:]):
              (-[NSCalendarDate _IF_isToday]):
              * WebFoundation/Misc.subproj/IFNSDictionaryExtensions.h:
              * WebFoundation/Misc.subproj/IFNSDictionaryExtensions.m:
              (-[NSDictionary _IF_doubleForKey:]):
              (-[NSDictionary _IF_floatForKey:]):
              (-[NSDictionary _IF_unsignedLongForKey:]):
              (-[NSDictionary _IF_longForKey:]):
              (-[NSDictionary _IF_unsignedIntForKey:]):
              (-[NSDictionary _IF_intForKey:]):
              (-[NSDictionary _IF_unsignedShortForKey:]):
              (-[NSDictionary _IF_shortForKey:]):
              (-[NSDictionary _IF_boolForKey:]):
              (-[NSDictionary _IF_encodeWWWFormURLData]):
              (-[NSMutableDictionary _IF_setDouble:forKey:]):
              (-[NSMutableDictionary _IF_setFloat:forKey:]):
              (-[NSMutableDictionary _IF_setUnsignedLong:forKey:]):
              (-[NSMutableDictionary _IF_setLong:forKey:]):
              (-[NSMutableDictionary _IF_setUnsignedInt:forKey:]):
              (-[NSMutableDictionary _IF_setInt:forKey:]):
              (-[NSMutableDictionary _IF_setUnsignedShort:forKey:]):
              (-[NSMutableDictionary _IF_setShort:forKey:]):
              (-[NSMutableDictionary _IF_setBool:forKey:]):
              * WebFoundation/Misc.subproj/IFNSFileManagerExtensions.h:
              * WebFoundation/Misc.subproj/IFNSFileManagerExtensions.m:
              (-[NSFileManager _IF_createDirectoryAtPathWithIntermediateDirectories:attributes:]):
              (-[NSFileManager _IF_createFileAtPathWithIntermediateDirectories:contents:attributes:directoryAttributes:]):
              (-[NSFileManager _IF_createIntermediateDirectoriesForPath:attributes:]):
              (-[NSFileManager _IF_fileExistsAtPath:isDirectory:traverseLink:]):
              (-[NSFileManager _performRemoveFileAtPath:]):
              (-[NSFileManager _IF_backgroundRemoveFileAtPath:]):
              * WebFoundation/Misc.subproj/IFNSMutableDataExtensions.h:
              * WebFoundation/Misc.subproj/IFNSMutableDataExtensions.m:
              (-[NSMutableData _IF_appendFormat:]):
              (-[NSMutableData _IF_appendEncodedString:format:arguments:]):
              (-[NSMutableData _IF_appendEncodedString:format:]):
              * WebFoundation/Misc.subproj/IFNSObjectExtensions.h:
              * WebFoundation/Misc.subproj/IFNSObjectExtensions.m:
              (-[NSObject _IF_performBooleanSelector:]):
              (-[NSObject _IF_performBooleanSelector:withObject:]):
              (-[NSObject _IF_encodeWWWFormURLData]):
              * WebFoundation/Misc.subproj/IFNSStringExtensions.h:
              * WebFoundation/Misc.subproj/IFNSStringExtensions.m:
              (-[NSString _IF_isCaseInsensitiveEqualToString:]):
              (-[NSString _IF_hasCaseInsensitiveSuffix:]):
              (-[NSString _IF_countOfString:]):
              (-[NSString _IF_looksLikeDomainName]):
              (-[NSString _IF_looksLikeIPAddress]):
              (-[NSString _IF_domainMatches:]):
              (-[NSString _IF_splitAtNonDateCommas]):
              (-[NSString _IF_parseAsKeyValuePair]):
              (-[NSString _IF_parseAsKeyValuePairHandleQuotes:]):
              (-[NSString _IF_stringByTrimmingWhitespace]):
              (-[NSString _IF_hasSubstring:atIndex:]):
              (-[NSString _IF_encodeStringBase64]):
              (-[NSString _IF_encodeWWWFormURLData]):
              (-[NSString _IF_encodeWWWFormURLData:]):
              (-[NSString _IF_mimeTypeFromContentTypeHeader]):
              (-[NSString _IF_characterSetFromContentTypeHeader]):
              * WebFoundation/Misc.subproj/IFNSThreadExtensions.h:
              * WebFoundation/Misc.subproj/IFNSThreadExtensions.m:
              (+[NSThread _joinableThreadBody:]):
              (+[NSThread _IF_createJoinableThreadWithSelector:toTarget:withObject:]):
              (+[NSThread _IF_joinThread:]):
              (+[NSThread _IF_sleep:]):
              * WebFoundation/Misc.subproj/IFNSURLExtensions.h:
              * WebFoundation/Misc.subproj/IFNSURLExtensions.m:
              (+[NSURL _IF_URLWithScheme:user:password:host:port:path:parameter:query:fragment:]):
      
              * WebKit/History.subproj/IFWebHistoryPrivate.m:
              (-[IFWebHistoryPrivate findIndex:forDay:]):
              (-[IFWebHistoryPrivate arrayRepresentation]):
              (-[IFWebHistoryPrivate _loadHistoryGuts:]):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1065 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      fbe7d279
    • kocienda's avatar
      2002-04-23 Kenneth Kocienda <kocienda@apple.com> · 20b0ea1d
      kocienda authored
              * kwq/KWQPixmap.mm:
              (QPixmap::QPixmap): Fixed unneeded leak of an NSImage in
              the case where we are still covering for a double-release
              bug in AppKit. No need to add insult to injury. :)
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1064 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      20b0ea1d
  4. 22 Apr, 2002 9 commits
    • darin's avatar
      Fix width of non-breaking spaces. There's code to hack this · 9afc49bb
      darin authored
      	at the KDE level for fonts that don't have non-breaking space
      	characters, but we need it even for fonts that do.
      
      	Not sure why this worked better on Puma, but now it's fine on
      	both Puma and Jaguar.
      
      	* kwq/KWQFontMetrics.mm:
      	(ConvertCharactersToGlyphs): New. Turns non-breaking spaces into
      	normal spaces if needed.
      	(-[KWQLayoutInfo drawString:atPoint:withFont:color:]),
      	(-[KWQLayoutInfo _initializeCaches]), (_rectForString): Change to
      	call ConvertCharactersToGlyphs instead of ATSUConvertCharToGlyphs.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1063 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9afc49bb
    • cblu's avatar
      WebFoundation: · 1dfa39a0
      cblu authored
              * Misc.subproj/IFError.h:
              * Misc.subproj/IFError.m:
              (+[IFError initialize]):
      
              Removed old WebKit errors, added IFCantShowMIMEType.
      
      WebKit:
              * WebView.subproj/IFMainURLHandleClient.mm:
              (-[IFMainURLHandleClient IFURLHandle:resourceDataDidBecomeAvailable:]):
      
              Send an IFError when we're asked to show content we can't handle.
      
              * WebView.subproj/IFWebDataSourcePrivate.mm:
      
              Cleaning
      
      WebBrowser:
              * LocationChangeHandler.m:
              (-[LocationChangeHandler requestContentPolicyForMIMEType:]):
      
              Cleaned this up a little.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1062 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      1dfa39a0
    • cblu's avatar
      WebBrowser: · 5ae52af9
      cblu authored
              * LocationChangeHandler.m:
              (-[LocationChangeHandler requestContentPolicyForMIMEType:]):
      
              A nil type means that this is a file URL.
      
      WebKit:
              * WebKit.pbproj/project.pbxproj:
              * WebView.subproj/IFBaseWebController.mm:
              (-[IFBaseWebController haveContentPolicy:andPath:forLocationChangeHandler:]):
              * WebView.subproj/IFWebDataSourcePrivate.h:
              * WebView.subproj/IFWebDataSourcePrivate.mm:
      
              Fixed frames which I broke in the previous commit. We now set the content policy
              on all child frames instead of just the main frame.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1061 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5ae52af9
    • darin's avatar
      Updated log. · f0656541
      darin authored
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1060 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f0656541
    • darin's avatar
      * kwq/qt/qpixmap.h: · 02fa0d3e
      darin authored
      	* kwq/KWQPixmap.mm:
      	(QPixmap::QPixmap): Clear needsCopyOnWrite flag in all the
      	constructors other than the copy constructor. Set it in the copy
      	constructor.
      	(QPixmap::~QPixmap): Simplify.
      	(QPixmap::mask): Always return 0 rather than leaking a QBitmap each time,
      	since Qt uses 0 to mean "no mask".
      	(QPixmap::isNull): Simplify.
      	(QPixmap::resize): Do the copy here if we need it, and do the setScalesWhenResized:
      	call in here instead of trying to do it elsewhere.
      	(QPixmap::xForm): Only copy the pixmap once.
      	(QPixmap::operator=): Set the needsCopyOnWrite flag. Also change the retain/release
      	idiom around so we don't need to check for self-assignment.
      
      	* khtml/ecma/Makefile.am: Don't build kjs_debugwin any more.
      	* khtml/ecma/kjs_debugwin.cpp: Removed.
      	* khtml/ecma/kjs_debugwin.h: Removed.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1059 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      02fa0d3e
    • cblu's avatar
      WebBrowser: · 8cb045f8
      cblu authored
              * LocationChangeHandler.m:
              (-[LocationChangeHandler requestContentPolicyForMIMEType:]):
              Initial implementation of Alex's interaction with out content policy API.
              Simply made Alex show types that we handle inline and save types we don't
      
              * WebController.m:
              Removed some deprecated methods.
      
      WebKit:
              * MIME.subproj/IFMIMEHandler.h:
              * MIME.subproj/IFMIMEHandler.m:
              (+[IFMIMEHandler showableMIMETypes]):
              (+[IFMIMEHandler saveFileWithPath:andData:]):
              (+[IFMIMEHandler saveAndOpenFileWithPath:andData:]):
      
              Added the above factory methods.
      
              * WebView.subproj/IFBaseWebController.mm:
              (-[IFBaseWebController haveContentPolicy:andPath:forLocationChangeHandler:]):
      
              Save the content policy and download path on the datasource.
      
              * WebView.subproj/IFMainURLHandleClient.mm:
              (-[IFMainURLHandleClient IFURLHandleResourceDidCancelLoading:]):
              (-[IFMainURLHandleClient IFURLHandleResourceDidFinishLoading:data:]):
              (-[IFMainURLHandleClient IFURLHandle:resourceDataDidBecomeAvailable:]):
              (-[IFMainURLHandleClient IFURLHandle:resourceDidFailLoadingWithResult:]):
      
              Made IFMainURLHandleClient use our new content policy API rather than
              IFDownloadHandler.
      
              * WebView.subproj/IFWebController.h:
      
              Removed some deprecated methods.
      
              * WebView.subproj/IFWebDataSourcePrivate.h:
              * WebView.subproj/IFWebDataSourcePrivate.mm:
              (-[IFWebDataSource _downloadPath]):
              (-[IFWebDataSource _setDownloadPath:]):
              (-[IFWebDataSource _contentPolicy]):
              (-[IFWebDataSource _setContentPolicy:]):
      
              Added the above methods.
      
      WebCore:
              Added a new method to WCPluginDatabase allHandledMIMETypes.
              It returns an  array of the mime types that plug-ins handle.
      
              * kwq/WCPluginDatabase.h:
              * kwq/WCPluginDatabase.mm:
              (-[WCPluginDatabase allHandledMIMETypes]):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1058 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8cb045f8
    • darin's avatar
      Fix ChangeLog typo. · c380e4af
      darin authored
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1057 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c380e4af
    • darin's avatar
      * Plugins.subproj/IFPluginView.mm: · 97d40830
      darin authored
      	(-[IFPluginView initWithFrame:plugin:url:mime:arguments:mode:]):
      	Fix the fix. It was bumping argsCount even when not putting an
      	argument into the array.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1056 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      97d40830
    • mjs's avatar
      Fix a plugins memory trasher that was making Alexander crash on · ecf397dc
      mjs authored
      	the abcnews.com test page in cvs-torture-test:
      
      	* Plugins.subproj/IFPluginView.mm:
      	(-[IFPluginView initWithFrame:plugin:url:mime:arguments:mode:]):
      	Use a new maxArguments variable to size the argument and value
      	arrays - with the old code argsCount would end up twice the size
      	it should be, and the arguments would all get written past the end
      	of the argument array.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1055 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ecf397dc
  5. 20 Apr, 2002 1 commit
  6. 19 Apr, 2002 3 commits
    • kocienda's avatar
      2002-04-19 Kenneth Kocienda <kocienda@apple.com> · 09b8b604
      kocienda authored
      	WebFoundation:
      
              Changes to support submission of forms using HTTP POST.
      
              These changes focus on adding the form data to a post request.
      
              * CacheLoader.subproj/IFHTTPURLProtocolHandler.m: (-[IFHTTPURLProtocolHandler
              addRequestMessageBody:]):
              * ChangeLog:
              * WebFoundation.pbproj/project.pbxproj:
      
      
      	WebCore:
      
              Changes to support submission of forms using HTTP POST.
      
              These changes move us over to using the new WebKit interface for creating
              WebDataSource instances, one that passes a handle rather than just a URL,
              enabling the specific request method to be communicated to WebFoundation.
              This fixes:
      
              Radar 2903602 (IFWebDataSource API must passes attributes and flags to IFURLHandle)
      
              Fixed handling of password fields:
      
              Radar 2903605 (WebCore form processing drops out password input data)
      
              Added some hacks to get form <input type=image ...> working correctly:
      
              Radar 2907198 (Forms not getting submitted correctly when <input type=image>)
      
      
              * khtml/rendering/render_form.cpp: (RenderImageButton::RenderImageButton),
              (RenderImageButton::~RenderImageButton), (RenderImageButton::printObject):
              * khtml/rendering/render_form.h:
              * kwq/KWQKHTMLPart.mm: (KHTMLPart::requestFrame), (KHTMLPart::submitForm),
              (KHTMLPart::khtmlMouseReleaseEvent):
              * kwq/KWQNSTextField.mm: (-[KWQNSTextField setPasswordMode:]), (-[KWQNSTextField
              textDidChange:]), (-[KWQNSTextField stringValue]):
              * kwq/Makefile.am:
      	* kwq/KWQInvisibleButton.h: Added
      	* kwq/KWQInvisibleButton.mm: Added
      
      	WebKit:
      
              Changes to support submission of forms using HTTP POST.
      
              These changes move us over to using the new WebKit interface for creating
              WebDataSource instances, one that passes a handle rather than just a URL,
              enabling the specific request method to be communicated to WebFoundation.
              This fixes:
      
              Radar 2903602 (IFWebDataSource API must passes attributes and flags to IFURLHandle)
      
              * WebKit.pbproj/project.pbxproj:
              * WebView.subproj/IFWebDataSource.h:
              * WebView.subproj/IFWebDataSource.mm: (IFWebDataSourceMake), (-[IFWebDataSource
              initWithURL:]), (-[IFWebDataSource initWithHandle:]):
              * WebView.subproj/IFWebDataSourcePrivate.h:
              * WebView.subproj/IFWebDataSourcePrivate.mm: (-[IFWebDataSource _startLoading:]):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1053 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      09b8b604
    • rjw's avatar
      Updated comments to reflect new API. · 8e328537
      rjw authored
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1052 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8e328537
    • darin's avatar
      * Plugins.subproj/IFPluginView.h: Re-add the attributes and values arrays, · c17374a5
      darin authored
      	since they need to live the life of the plugin.
      	* Plugins.subproj/IFPluginView.mm: (newCString): New function to make a C++
      	new-allocated C string from an NSString.
      	(-[IFPluginView initWithFrame:plugin:url:mime:arguments:mode:]): Move code
      	to allocate the arrays back here.
      	(-[IFPluginView dealloc]): Deallocate the arrays and their contents.
      	(-[IFPluginView start]): Simplify now that it does no work.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1051 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c17374a5
  7. 18 Apr, 2002 7 commits
    • cblu's avatar
      2002-04-18 Chris Blumenberg <cblu@apple.com> · ce1a1cf1
      cblu authored
              Made stop and start work better. Fixed a bug darin made.
      
              * Plugins.subproj/IFPluginView.h:
              * Plugins.subproj/IFPluginView.mm: (-[IFPluginView
              initWithFrame:plugin:url:mime:arguments:mode:]), (-[IFPluginView setWindow]),
              (-[IFPluginView start]), (-[IFPluginView stop]):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1050 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ce1a1cf1
    • rjw's avatar
      Fixed typo. · 29f559a7
      rjw authored
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1049 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      29f559a7
    • rjw's avatar
      New API for content policy. · 80b7e83e
      rjw authored
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1048 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      80b7e83e
    • darin's avatar
      Oops. Take out -Wstrict-prototypes, put back -Wmissing-prototypes. · c61efd0f
      darin authored
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1047 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c61efd0f
    • darin's avatar
      Take out -Wmissing-prototypes · 388747d8
      darin authored
      	because system headers are triggering it when we don't have
      	precompiled headers on.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1046 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      388747d8
    • darin's avatar
      * Makefile.am: Pass the -f flag to ln so it doesn't fail when · 8a88b319
      darin authored
      	there's already a link there.
      
      	* configure.in: Use gcc3 and g++3 so we always get gcc 3.0, no
      	matter how the system is configured. Besides the fact that gcc
      	3.0 includes more in -Wall, turned on the following additional
      	warnings that were not on before:
      	    -W
      	    -Wbad-function-cast
      	    -Wformat-security
      	    -Wmissing-format-attribute
      	    -Wstrict-prototypes
      	    -Wwrite-strings
      	Also removed the -fno-coalesce-static-vtables flag for C++
      	and removed explicit mention of C++ warnings that are part of
      	-Wall in gcc 3.0 at least.
      
      	* Tests/harness.c: (main): Const string fix.
      	* Tests/kde/kurl-test.cpp: (testURL): Std namespace and const string fix.
      	* Tests/libiftest/IFTestDirectory.c: (IFSetUpTestDirectory): Const string fix.
      	* Tests/libiftest/IFTestDirectory.h: Const string fix.
      
      	* Tests/qt/qarray-test.cpp:
      	* Tests/qt/qbuffer-test.cpp:
      	* Tests/qt/qchar-test.cpp:
      	* Tests/qt/qcstring-test.cpp:
      	* Tests/qt/qdate-test.cpp:
      	* Tests/qt/qdatetime-test.cpp:
      	* Tests/qt/qdict-test.cpp:
      	* Tests/qt/qdir-test.cpp:
      	* Tests/qt/qfile-test.cpp:
      	* Tests/qt/qlist-test.cpp:
      	* Tests/qt/qmap-test.cpp:
      	* Tests/qt/qpoint-test.cpp:
      	* Tests/qt/qptrdict-test.cpp:
      	* Tests/qt/qrect-test.cpp:
      	* Tests/qt/qregexp-test.cpp:
      	* Tests/qt/qsize-test.cpp:
      	* Tests/qt/qsortedlist-test.cpp:
      	* Tests/qt/qstack-test.cpp:
      	* Tests/qt/qstring-test.cpp:
      	* Tests/qt/qstringlist-test.cpp:
      	* Tests/qt/qtime-test.cpp:
      	* Tests/qt/qvaluelist-test.cpp:
      	* Tests/qt/qvector-test.cpp:
      	Add "using namespace std" to each test as a simple std namespace fix.
      
      WebFoundation:
      
      	Reviewed by Maciej
      
      	Fixes for compiling with gcc3 and more warnings.
      
      	* WebFoundation.pbproj/project.pbxproj: Turn on gcc3 and the same set of warnings
      	as in the rest of Labyrinth (see top level ChangeLog for details).
      
      	* CacheLoader.subproj/IFURLHandle.m: (-[IFURLHandle percentComplete]):
      	Rearrange code to avoid a cast to (float) that gcc3 didn't like.
      
      	* Database.subproj/IFNDBMDatabase.m: (-[IFNDBMDatabase objectForKey:]):
      	Mark some variables volatile to make gcc3 happy about their values and the
      	use of longjmp. Good catch on the compiler's part.
      
      	* Database.subproj/IFURLFileDatabase.m: Work around bug 2905545 so we can
      	have -W on for all the rest of WebFoundation.
      	(URLFileReaderInit): Mark this as (void) so it's not a non-prototyped function.
      	(-[IFURLFileReader initWithPath:]): Don't assign to self so gcc3 is not unhappy
      	about the use of it with longjmp.
      	(-[IFURLFileDatabase objectForKey:]): Mark some variables volatile to make gcc3
      	happy about their values and the use of longjmp.
      
      	* Misc.subproj/IFNSObjectExtensions.m: (-[NSObject performBooleanSelector:]),
      	(-[NSObject performBooleanSelector:withObject:]): Do a new implementation that
      	does't make the compiler unhappy about type casts.
      
      	* Misc.subproj/IFNSThreadExtensions.m: Work around bug 2905545 so we can
      	have -W on for all the rest of WebFoundation.
      	(InitJoinableThreads): Mark this as (void) so it's not a non-prototyped function.
      
      JavaScriptCore:
      
      	Reviewed by Maciej
      
      	* JavaScriptCore.pbproj/project.pbxproj: Turn on gcc3 and the same set of warnings
      	as in the rest of Labyrinth (see top level ChangeLog for details).
      
      WebCore:
      
      	Fixes for compiling with gcc3 and more warnings.
      
      	* khtml/html/.cvsignore: Add kentities.c; I could have sworn I did this
      	already.
      	* khtml/html/Makefile.am: Remove erroneous duplicate definition of
      	CLEAN_FILES.
      
      	* libwebcore.exp:
      	* libwebcoretests.exp:
      	Rebuilt these lists from scratch. Almost everything in here is different
      	since the C++ name mangling rules changed.
      
      	* khtml/css/cssparser.cpp:
      	* khtml/misc/htmlhashes.cpp:
      	Disable inlining in part of this file as a workaround for Radar 2905890.
      
      	* kwq/KWQApplication.mm: (QDesktopWidget::screenGeometry):
      	Add casts to int needed to make gcc3 happy.
      	* kwq/KWQArrayImpl.mm: Add missing #include of <string.h>.
      
      	* kwq/KWQBitmap.mm:
      	* kwq/KWQFrame.mm:
      	* kwq/KWQLineEdit.mm:
      	Removed some unused copy constructors and assignment operators to avoid
      	warnings in them.
      
      	* kwq/KWQButton.mm: (QButton::setText):
      	* kwq/KWQListBox.mm: (QListBox::~QListBox), (QListBox::clear),
      	(QListBox::setSelectionMode), (QListBox::currentItem), (QListBox::insertItem),
      	(QListBox::setSelected), (QListBox::isSelected), (QListBoxItem::width),
      	(QListBoxItem::height):
      	* kwq/KWQScrollView.mm: (QScrollView::setContentsPos), (QScrollView::addChild),
      	(QScrollView::resizeContents), (QScrollView::viewportToContents),
      	Use local variables to work around Radar 2905835.
      
      	* kwq/KWQCString.mm: (operator<<):
      	* kwq/KWQPoint.mm: (operator<<):
      	* kwq/KWQRect.mm: (operator<<):
      	* kwq/KWQSize.mm: (operator<<):
      	* kwq/qt/qarray.h:
      	* kwq/qt/qcstring.h:
      	* kwq/qt/qdatetime.h:
      	* kwq/qt/qdict.h:
      	* kwq/qt/qlist.h:
      	* kwq/qt/qmap.h:
      	* kwq/qt/qpainter.h:
      	* kwq/qt/qpoint.h:
      	* kwq/qt/qptrdict.h:
      	* kwq/qt/qrect.h:
      	* kwq/qt/qsize.h:
      	* kwq/qt/qstack.h:
      	* kwq/qt/qvaluelist.h:
      	* kwq/qt/qvector.h:
      	Say std::ostream instead of just ostream.
      
      	* kwq/KWQCharsets.mm: Fix a const problem.
      
      	* kwq/KWQDateTime.mm: (QTime::elapsed), (QTime::restart): Use int instead
      	of uint, since these functions try to handle values that are less than 0.
      	(operator<<): Say std::ostream instead of just ostream.
      	* kwq/KWQTextArea.mm: (RangeOfParagraph): Fix an int/uint issue.
      
      	* kwq/KWQFile.mm: (QFile::KWQFilePrivate::KWQFilePrivate),
      	(QFile::KWQFilePrivate::~KWQFilePrivate): Use new/delete instead of
      	malloc/free so we don't get void * warnings.
      
      	* kwq/KWQFontMetrics.mm: (__IFFillStyleWithAttributes),
      	(-[KWQLayoutInfo drawString:atPoint:withFont:color:]),
      	(-[KWQLayoutInfo _initializeCaches]),
      	(_rectForString):
      	* kwq/KWQKURL.mm: (KURL::KWQKURLPrivate::KWQKURLPrivate),
      	(RelativeURLKeyRetainCallBack), (RelativeURLKeyReleaseCallBack),
      	(RelativeURLKeyEqualCallBack), (RelativeURLKeyHashCallBack),
      	(KURL::normalizeURLString), (KURL::normalizeRelativeURLString):
      	* kwq/KWQPainter.mm: (QPainter::save):
      	* kwq/KWQKloader.mm:
      	(-[URLLoadClient IFURLHandle:resourceDidFailLoadingWithResult:]),
      	(-[URLLoadClient IFURLHandle:didRedirectToURL:]):
      	Add type casts where necessary to make the stricter gcc3 happy.
      
      	* kwq/KWQPixmap.mm: (QPixmap::QPixmap): Explicitly initialize the underlying
      	QPaintDevice.
      	(QPixmap::size), (QPixmap::rect): Add type casts where necessary to make
      	the stricter gcc3 happy.
      
      	* kwq/KWQPtrDictImpl.mm: (KWQPtrDictImpl::KWQPtrDictPrivate::KWQPtrDictPrivate):
      	Say std::bad_alloc instead of just bad_alloc.
      	(invokeDeleteFuncOnValue), (KWQPtrDictImpl::clear): Pass a pointer to a function
      	pointer rather than a function pointer to avoid a warning about turning function
      	pointers into void *.
      
      	* kwq/KWQRegion.mm: (QRegion::_initialize), (QRegion::~QRegion): Use new/delete
      	rather than calloc/free so we don't get void * warnings.
      	(QRegion::boundingRect): Add type casts.
      
      	* kwq/KWQString.mm: (QString::fromStringWithEncoding): Add cast.
      	(QString::setNum): use %ld and %lu rather than %D and %U.
      	(QString::fill), (QString::convertToQCString): Add casts.
      
      	* kwq/KWQTextStorage.mm: (-[KWQTextStorage _buildFragmentForString:]):
      	Add a cast to make gcc3 happy.
      
      	* kwq/KWQVariant.mm: Say "friend class" instead of "friend".
      
      	* kwq/KWQVectorImpl.mm: (KWQVectorImpl::KWQVectorPrivate::KWQVectorPrivate):
      	Say std::bad_alloc instead of just bad_alloc.
      	(KWQVectorImpl::data): Replace the old autorelease trick with a new one that
      	doesn't require mixing malloc with NSData.
      
      	* kwq/KWQView.mm: (-[KWQHTMLView mouseUp:]), (-[KWQHTMLView mouseDown:]):
      	Add casts to make gcc3 happy.
      
      	* kwq/KWQWidget.mm: (QWidget::frameGeometry), (QWidget::mapToGlobal),
      	(QWidget::minimumSizeHint): Add casts to make gcc3 happy. Also another
      	workaround for Radar 2905835.
      
      	* kwq/WCPlugin.mm: (-[WCPlugin load]): Add tons of type casts so we don't have
      	to mix void * with function pointer types.
      
      	* kwq/WCPluginWidget.h:
      	* kwq/WCPluginWidget.mm: (WCIFPluginMakeFunction), (WCIFNullPluginMakeFunction):
      	Change types so we don't have to mix void * with function pointer types.
      	This caught a mistake where WCIFNullPluginMakeFunction was returning the wrong
      	function pointer.
      
      	* kwq/external.h: Add some missing interfaces that the pickier gcc3 needed to see.
      
      	* kwq/kwqdebug.mm: Don't compile the file if xNDEBUG is set. Otherwise we get
      	a warning in here.
      
      	* kwq/npapi.h: Use function pointer types for function pointers and transition
      	vectors so we don't have to mix void * with function pointer types.
      
      	* kwq/npapi.mm: (NPN_GetURLNotify), (NPN_GetURL),
      	(NPN_PostURLNotify), (NPN_PostURL), (NPN_NewStream), (NPN_Write),
      	(NPN_DestroyStream), (NPN_Status), (NPN_GetValue), (NPN_SetValue),
      	(NPN_InvalidateRect), (NPN_InvalidateRegion), (NPN_ForceRedraw):
      	Use local variables to work around Radar 2905835.
      	(functionPointerForTVector), (tVectorForFunctionPointer):
      	Change types around so we don't have to mix void * with function pointer types.
      
      WebKit:
      
      	Fixes for compiling with gcc3 and more warnings.
      
      	* WebKit.pbproj/project.pbxproj: Turn on gcc3 and the same set of warnings
      	as in the rest of Labyrinth (see top level ChangeLog for details).
      
      	* Plugins.subproj/IFPluginView.mm:
      	Avoid warnings about malloc by not using it.
      	(-[IFPluginView initWithFrame:plugin:url:mime:arguments:mode:]): Keep the arguments
      	dictionary around instead of keeping the C format version of it around. Also don't
      	bother keeping the C string form of the MIME type around, and simplify some other
      	stuff in here.
      	(-[IFPluginView dealloc]): Corresponding changes since we keep a different set of things.
      	(-[IFPluginView newStream:mimeType:notifyData:]): Use [mimeType cString].
      	(-[IFPluginView start]): Build the lists of attributes and values in here. Do it using
      	[NSString cString] for simplicity and don't keep the lists around after we're done with
      	them.
      	(-[IFPluginView IFURLHandleResourceDidFinishLoading:data:]): Use [filenameClassic cString].
      
      	* WebView.subproj/IFMainURLHandleClient.mm:
      	(-[IFMainURLHandleClient IFURLHandleResourceDidCancelLoading:]),
      	(-[IFMainURLHandleClient IFURLHandleResourceDidFinishLoading:data:]),
      	(-[IFMainURLHandleClient IFURLHandle:resourceDataDidBecomeAvailable:]),
      	(-[IFMainURLHandleClient IFURLHandle:resourceDidFailLoadingWithResult:]):
      	* WebView.subproj/IFWebDataSourcePrivate.mm: (-[IFWebDataSourcePrivate dealloc]),
      	(-[IFWebDataSource _setLoading:]), (-[IFWebDataSource _setController:]),
      	(-[IFWebDataSource _setLocationChangeHandler:]):
      	* WebView.subproj/IFWebView.mm: (-[IFWebView provisionalDataSourceChanged:]),
      	(-[IFWebView mouseUp:]), (-[IFWebView mouseDown:]):
      	Add type casts required by pickier gcc3.
      
      	* WebView.subproj/IFWebViewPrivate.mm: (-[IFWebViewPrivate dealloc]):
      	Add type cast required by pickier gcc3.
      	(-[IFWebView _stopPlugins]): Use local variable to work around Radar 2905835.
      
      WebBrowser:
      
      	Fixes for compiling with gcc3 and more warnings.
      
      	* WebBrowser.pbproj/project.pbxproj: Turn on gcc3 and the same set of warnings
      	as in the rest of Labyrinth (see top level ChangeLog for details).
      
      	* InternetConfigUtilities.m: (stringValueForICKey), (setStringValue):
      	Some const string fixes.
      	* Preferences.subproj/TextPreferences.m: (-[TextPreferences changeFont:]):
      	Remove a cast that makes gcc3 unhappy.
      	* ___CFA2UC.c: (NSGiantRaise): Const string fix.
      	(gcompg): Old-style function prototype fix.
      	(initialguess): Remove a cast that makes gcc3 unhappy.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1045 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8a88b319
    • cblu's avatar
      Moved plugin instance creation to the start method in IFPluginView. · 32b34c44
      cblu authored
              * Plugins.subproj/IFPluginView.h:
              * Plugins.subproj/IFPluginView.mm: (-[IFPluginView
              initWithFrame:plugin:url:mime:arguments:mode:]), (-[IFPluginView dealloc]),
              (-[IFPluginView newStream:mimeType:notifyData:]), (-[IFPluginView start]),
              (-[IFPluginView stop]), (-[IFPluginView drawRect:]), (-[IFPluginView
              windowBecameKey:]), (-[IFPluginView windowResignedKey:]), (-[IFPluginView
              IFURLHandle:resourceDataDidBecomeAvailable:]), (-[IFPluginView
              IFURLHandleResourceDidFinishLoading:data:]):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1044 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      32b34c44
  8. 17 Apr, 2002 5 commits
    • mjs's avatar
      Reviewed by: Darin Adler <darin@apple.com> · 3bd659b3
      mjs authored
      	* kjs/testkjs.cpp: Don't include <iostream.h> to avoid gcc3
      	warning.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1041 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3bd659b3
    • darin's avatar
      Fix build problem. · 833ed3db
      darin authored
      	* Makefile.am: Don't build this directory before subdirs, because
      	we link at this level. Move the kentities.c build out of here,
      	because it needs to be done before khtml/html.
      	* khtml/html/Makefile.am: Move kentities.c build rules here.
      
      	* kentities.gperf: Removed.
      	* khtml/html/kentities.gperf: Added.
      
      	* .cvsignore: Don't ignore kentities.c.
      	* khtml/html/.cvsignore: Ignore kentities.c.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1040 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      833ed3db
    • darin's avatar
      top level: · 215fa365
      darin authored
      	* configure.in: Update for new organization of WebCore.
      
      	* Tools/HotSpotFinder/HotSpotFinder.pbproj/project.pbxproj: Switch to gcc3 and
      	turn on more warnings.
      	* Tools/HotSpotFinder/SamplingData.m:
      	(-[SamplingDataAccumulator processFunction:depth:]): Fix a signed/unsigned warning.
      
      WebCore:
      
      	* .cvsignore: Ignore new generated files at this level.
      
      	* include/*: Removed. We don't need this hack any more.
      	* src/*: Removed. Sources are now in their new locations.
      	* src/libwebcore.exp: Removed. This is now in its new location.
      	* src/libwebcoretests.exp: Removed. This is now in its new location.
      
      	* Makefile.am: Build khtml and kwq subdirs, don't build src and include.
      	Also add the rules that used to be in src about linking the library and
      	the rules that used to be in src/kdelibs/kdecore about building the
      	kentitices.c file.
      
      	* dummy.mm: Moved here from src by hand.
      	* kentities.gperf: Moved here from src/kdelibs/kdecore by hand.
      
      	* khtml/html/Makefile.am: Add WebCore directory to includes so the
      	include of "kentities.c" will work.
      
      	* kwq/KWQKHTMLPart.mm:
      	* kwq/KWQKJavaEmbed.mm:
      	* kwq/KWQKloader.mm:
      	Correct includes so we don't need a -I for each of the subdirectories.
      
      	* kwq/khtml/java/javaembed.h: Removed. We use the one in the real
      	khtml directory.
      
      	* kwq/kwqdebug.h: Rolled over Chris's changes, which were done after
      	the cvs surgery was done.
      
      WebKit:
      
      	* WebKit.pbproj/project.pbxproj: Update header search paths to find
      	WebCore in the new location and eliminate WebCore/include.
      
      WebBrowser:
      
      	* WebBrowser.pbproj/project.pbxproj: Update header search paths to find
      	WebCore in the new location and eliminate WebCore/include.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1039 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      215fa365
    • cblu's avatar
      Added a debug bit mask for plugins and downloads. · c54e6a72
      cblu authored
      	* MIME.subproj/IFDownloadHandlerPrivate.m: (-[IFDownloadHandlerPrivate
      	_openFile]), (-[IFDownloadHandlerPrivate _saveFile]), (-[IFDownloadHandler
      	_initWithURLHandle:mimeHandler:]):
      	* Misc.subproj/WebKitDebug.h:
      	* Plugins.subproj/IFPluginView.mm: (-[IFPluginView
      	initWithFrame:plugin:url:mime:arguments:mode:]), (-[IFPluginView setWindow]),
      	(-[IFPluginView newStream:mimeType:notifyData:]), (-[IFPluginView stop]),
      	(-[IFPluginView sendUpdateEvent]), (-[IFPluginView becomeFirstResponder]),
      	(-[IFPluginView resignFirstResponder]), (-[IFPluginView mouseDown:]),
      	(-[IFPluginView mouseUp:]), (-[IFPluginView mouseEntered:]), (-[IFPluginView
      	mouseExited:]), (-[IFPluginView keyUp:]), (-[IFPluginView keyDown:]),
      	(-[IFPluginView IFURLHandle:resourceDataDidBecomeAvailable:]), (-[IFPluginView
      	IFURLHandleResourceDidFinishLoading:data:]), (-[IFPluginView
      	getURLNotify:target:notifyData:]), (-[IFPluginView getURL:target:]),
      	(-[IFPluginView postURLNotify:target:len:buf:file:notifyData:]), (-[IFPluginView
      	postURL:target:len:buf:file:]), (-[IFPluginView newStream:target:stream:]),
      	(-[IFPluginView write:len:buffer:]), (-[IFPluginView destroyStream:reason:]),
      	(-[IFPluginView status:]), (-[IFPluginView getValue:value:]), (-[IFPluginView
      	setValue:value:]), (-[IFPluginView invalidateRect:]), (-[IFPluginView
      	invalidateRegion:]), (-[IFPluginView forceRedraw]):
      	* WebView.subproj/IFMainURLHandleClient.mm: (-[IFMainURLHandleClient
      	IFURLHandle:resourceDataDidBecomeAvailable:]):
      
      	* src/kwq/kwqdebug.h:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1038 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c54e6a72
    • darin's avatar
      * WebView.subproj/IFPreferences.mm: (+[IFPreferences load]): · 349b96d9
      darin authored
      	Changed another Georgia that I missed to Times New Roman.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1037 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      349b96d9
  9. 16 Apr, 2002 4 commits
    • darin's avatar
      * WebView.subproj/IFWebDataSource.mm: · 344cbc6d
      darin authored
      	* WebView.subproj/IFWebDataSourcePrivate.mm:
      	Touch these files to try to make Jersey build again.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1036 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      344cbc6d
    • darin's avatar
      WebCore: · 4ffca5b7
      darin authored
      	* src/kdelibs/khtml/khtml_part.cpp: Added. Not used yet, but maybe we'll use
      	part of it some time soon.
      
      	* src/kdelibs/khtml/khtml_part.h: Reenabled this file, and made changes so it
      	could be used instead of our own header.
      	* src/kwq/KWQKHTMLPart.h: Removed.
      
      	* src/kwq/KWQKHTMLPart.mm: (KHTMLPart::KHTMLPart): Add parameter to match KDE.
      	(KHTMLPart::settings): Add const to match KDE.
      	(KHTMLPart::scheduleRedirection): Add parameter to match KDE.
      	(KHTMLPart::encoding): Add const to match KDE.
      	(KHTMLPart::urlCursor): Update return value to match KDE.
      	(KHTMLPart::urlSelected): Add parameter to match KDE.
      	(KHTMLPart::requestObject): Put plugins array on private object.
      	(KHTMLPart::frames): Remove const to match KDE.
      	(KHTMLPart::documentSource): Add const to match KDE.
      	(KHTMLPart::setTitle): Put dataSource on private object.
      	(KHTMLPart::setDataSource): New, not inline any more.
      	(KHTMLPart::getDataSource): New, not inline any more.
      
      	* src/libwebcore.exp: Update for function name changes.
      
      	* src/kwq/khtml/khtml_settings.h:
      	* src/kwq/KWQKHTMLSettings.mm: (KHTMLSettings::changeCursor): Add const.
      
      	* src/kwq/KWQView.mm: (-[KWQHTMLView layout]): No need to check xmlDocImpl()
      	and renderer() for NULL now, because KHTMLView::layout does.
      
      	* src/kwq/KWQKloader.mm: (Loader::load): Use type instead of id.
      
      WebKit:
      
      	* WebView.subproj/IFBaseWebControllerPrivate.mm: Include khtml_part.h instead
      	of KWQKHTMLPart.h.
      
      	* WebView.subproj/IFWebFrame.mm: Include khtml_part.h instead of KWQKHTMLPart.h.
      
      	* WebView.subproj/IFWebDataSource.mm: (-[IFWebDataSource documentTextFromDOM]):
      	Remove an unneeded cast and an extra retain/autorelease.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1035 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4ffca5b7
    • darin's avatar
      * WebView.subproj/IFWebFrame.h: · bd134a70
      darin authored
      	* WebView.subproj/IFWebFrame.mm:
      	* WebView.subproj/IFWebFramePrivate.h:
      	Change view/setView back to be id, rather than IFWebView.
      	In the future, the view may be some other kind of object.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1034 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      bd134a70
    • sullivan's avatar
      Fixed bug Chris noticed where Alexander wasn't putting up · 5a370379
      sullivan authored
      	an error sheet on failed page visits.
      
      	* WebView.subproj/IFWebFramePrivate.mm:
      	(-[IFWebFrame _isLoadComplete]): Don't set provisionalDataSource
      	to nil until after sending it locationChangeDone.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1033 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5a370379