1. 04 Sep, 2002 7 commits
    • darin's avatar
      Fix unused variable warnings for deployment builds. · 6e9d3709
      darin authored
              * Plugins.subproj/WebPluginView.m: Add ifndef NDEBUG around variable
      	used only in log statements.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1962 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      6e9d3709
    • darin's avatar
      WebKit: · 6e48f21c
      darin authored
      	Removed the now-unnecessary iconURL from bookmarks and history.
      
              * Bookmarks.subproj/WebBookmark.h:
              * Bookmarks.subproj/WebBookmark.m:
              * Bookmarks.subproj/WebBookmarkGroup.h:
              * Bookmarks.subproj/WebBookmarkGroup.m:
              * Bookmarks.subproj/WebBookmarkLeaf.h:
              * Bookmarks.subproj/WebBookmarkLeaf.m:
              * History.subproj/WebHistory.h:
              * History.subproj/WebHistory.m:
              * History.subproj/WebHistoryItem.h:
              * History.subproj/WebHistoryItem.m:
              * History.subproj/WebHistoryPrivate.h:
              * History.subproj/WebHistoryPrivate.m:
      	Removed iconURL instance variables, methods, and parameters.
      
      WebBrowser:
      
      	Update users of bookmark or history APIs from WebKit that no longer take an iconURL.
      
              * BookmarksController.m:
              (-[BookmarksController _blessOrCreateFavoritesRoot]):
              * BookmarksViewController.m:
              (-[BookmarksViewController newItemWithTitle:URLString:type:positionIgnoresSelection:]):
              * LocationChangeHandler.m:
              (-[LocationChangeHandler receivedPageTitle:forDataSource:]):
      	Removed iconURL parameters.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1961 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      6e48f21c
    • darin's avatar
      Did some minor plugin cleanup, mostly to make sure we don't · 4f74e34e
      darin authored
      	change pages while a plugin is tracking.
      
              * Plugins.subproj/WebPluginView.h: Add sendEvent and sendUpdateEvent.
      	Remove the NPP_HandleEvent method.
              * Plugins.subproj/WebPluginView.m:
              (-[WebNetscapePluginView sendEvent:]): Sets up the "defersCallbacks"
      	state, then sends the event.
      
              * Plugins.subproj/WebNetscapePluginViewPrivate.h: Added.
      	This stuff was shared in a different way before, and it
      	hadn't even been renamed.
              * WebKit.pbproj/project.pbxproj: Added file.
              * Plugins.subproj/npapi.m: Use the new private header.
      
              * Plugins.subproj/WebPluginNullEventSender.h: Hold a reference
      	to the view.
              * Plugins.subproj/WebPluginNullEventSender.m:
              (-[WebNetscapePluginNullEventSender initWithPluginView:]):
      	Retain the view.
              (-[WebNetscapePluginNullEventSender dealloc]): Release the view.
              (-[WebNetscapePluginNullEventSender sendNullEvents]): Use sendEvent:.
              (-[WebNetscapePluginNullEventSender stop]): No need for shouldStop.
      
              * WebView.subproj/WebDataSourcePrivate.m:
              (-[WebDataSourcePrivate init]): Don't set contentPolicy to an enum value,
      	when it's an object reference.
              (-[WebDataSourcePrivate dealloc]): Release contentPolicy to fix a leak.
      
              * WebView.subproj/WebHTMLView.m:
              (-[WebHTMLView mouseDragged:]): Set draggedURL to nil in the else case,
      	it was uninitialized before. Also center the icon better when dragging,
      	but shouldn't we be dragging something more than the icon here?
      
              * Misc.subproj/WebIconDatabase.m: (-[WebIconDatabase defaultIconWithSize:]):
      	Add a call to release. Doesn't really plug a leak, but cleaner this way.
      
              * Plugins.subproj/WebPlugin.m: Tweaks.
              * WebView.subproj/WebMainResourceClient.m: Tweaks only.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1960 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4f74e34e
    • kocienda's avatar
      WebFoundation: · b1498730
      kocienda authored
      	Modified API and behavior so that WebResourceHandle objects no longer
      	buffer data as it is loaded. The responsibility to buffer data is now
      	passed to WebResourceClient objects, and I modified the code to
      	perform that buffering where necessary.
      
      	There was also an API change to the WebResourceClient protoccol.
      
      	- (void)handleDidFinishLoading:(WebResourceHandle *)handle data:(NSData *)data;
      
      	has become
      
      	- (void)handleDidFinishLoading:(WebResourceHandle *)handle;
      
      	This reflects the fact that WebResourceHandle no longer has the data to pass
      	in this callback (and may not be able to ask other objects in the framework to
      	provide the data so that it may be presented in the callback).
      
      	I also added a new WebResourceResponse class, although it is not wired up
      	to anything yet.
      
              * CacheLoader.subproj/IFURLHandleC.h:
              * CacheLoader.subproj/IFURLHandleC.m:
              * CacheLoader.subproj/WebResourceCallbackClient.m:
              (-[WebResourceCallbackClient handleDidFinishLoading:])
              * CacheLoader.subproj/WebResourceClient.h:
              * CacheLoader.subproj/WebResourceHandle.h:
              * CacheLoader.subproj/WebResourceHandle.m:
              (-[WebResourceHandle loadInForeground:])
              (-[WebResourceHandle contentLengthReceived])
              * CacheLoader.subproj/WebResourceHandleInternal.h:
              * CacheLoader.subproj/WebResourceHandleInternal.m:
              (-[WebResourceHandleInstanceVariables initWithHandle:])
              (-[WebResourceHandleInstanceVariables dealloc])
              (-[WebResourceHandle _notifyClientDataDidBecomeAvailable])
              (-[WebResourceHandle _notifyClientDidFinishLoading])
              * CacheLoader.subproj/WebResourceHandlePrivate.m:
              (-[WebResourceHandle _didLoadData:])
              * CacheLoader.subproj/WebResourceResponse.h: Added.
              * CacheLoader.subproj/WebResourceResponse.m: Added.
              * CacheLoader.subproj/WebResourceResponsePrivate.h: Added.
              * CacheLoader.subproj/WebResourceSynchronousClient.h:
              * CacheLoader.subproj/WebResourceSynchronousClient.m:
              (-[WebResourceSynchronousClient initWithMonitor:realClient:])
              (-[WebResourceSynchronousClient dealloc])
              (-[WebResourceSynchronousClient resourceData])
              (-[WebResourceSynchronousClient handleDidFinishLoading:])
              (-[WebResourceSynchronousClient handleDidReceiveData:data:])
              * WebFoundation.exp:
              * WebFoundation.pbproj/project.pbxproj:
      
      WebKit:
      
      	Made more adjustments for API and behavior change that occurred in WebFoundation,
      	now that WebResourceHandle objects no buffer resource data as it is loaded. Where
      	necessary, the WebKit objects now do their own buffering, however, in many cases,
      	buffering is not necessary to maintain correct behavior.
      
              * Misc.subproj/WebIconLoader.m:
              (-[WebIconLoaderPrivate dealloc]): Release new buffered resource data object.
              (-[WebIconLoader initWithURL:]): Allocate new buffered resource data object.
              (-[WebIconLoader handleDidFinishLoading:]): Modify API to remove data parameter.
              (-[WebIconLoader handleDidReceiveData:data:]): Buffer data as it is received.
              * Plugins.subproj/WebPluginStream.h: Added new buffered resource data object.
              * Plugins.subproj/WebPluginStream.m:
              (-[WebNetscapePluginStream initWithURL:pluginPointer:notifyData:attributes:]): Allocate new buffered resource data object.
              (-[WebNetscapePluginStream dealloc]): Release new buffered resource data object.
              (-[WebNetscapePluginStream receivedData:]): Buffer data as it is received (when necessary maintain correct behavior).
              (-[WebNetscapePluginStream handleDidFinishLoading:]): Modify API to remove data parameter.
              * WebCoreSupport.subproj/WebSubresourceClient.m:
              (-[WebSubresourceClient handleDidFinishLoading:]): Modify API to remove data parameter.
              * WebView.subproj/WebMainResourceClient.m:
              (-[WebMainResourceClient handleDidFinishLoading:]): Modify API to remove data parameter.
              (-[WebMainResourceClient handleDidReceiveData:data:]): Buffer data as it is received (when necessary maintain correct behavior).
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1959 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b1498730
    • cblu's avatar
      WebKit: · 45fa1a35
      cblu authored
      	Fixed: 3043024 - Built-in icons should match on *whatever.com or *whatever.whatever
      	implemented wizzy scaling, but ifdef'd it out
      
              * Misc.subproj/WebIconDatabase.m:
              (-[WebIconDatabase iconForSiteURL:withSize:]): call _builtItIconsForHost
              (-[WebIconDatabase _hasIconForSiteURL:]): call _builtItIconsForHost
              (-[WebIconDatabase _iconForFileURL:withSize:]): call _iconByScalingIcon:toSize:
              (-[WebIconDatabase _builtItIconsForHost:]): use better host matching
              (-[WebIconDatabase _cachedIconFromArray:withSize:]): call _iconByScalingIcon:toSize:
              (-[WebIconDatabase _iconByScalingIcon:toSize:]): renamed, ifdef'd out wizzy scaling
      
      WebBrowser:
      
      	Release alloc'd image.
      
              * AppController.m:
              (-[AppController _installBuiltItIcons]):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1958 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      45fa1a35
    • kocienda's avatar
      Changed WebKit so that it no longer relies on WebResourceHandle to buffer · 7e40ab00
      kocienda authored
      	resource data as it is loaded. Instead, this buffering task has been moved
      	out to the WebResourceClient, WebMainResourceClient in this case. This
      	change is a "proof of concept" for the upcoming change where the API in
      	WebFoundation for buffering resource data in WebResourceHandle will be
      	removed altogether.
      
              * WebView.subproj/WebDataSource.m:
              (-[WebDataSource data]): Changed to call WebMainResourceClient when resource data is needed.
              * WebView.subproj/WebMainResourceClient.h: Added mutable data ivar.
              * WebView.subproj/WebMainResourceClient.m:
              (-[WebMainResourceClient initWithDataSource:]): Added mutable data ivar.
              (-[WebMainResourceClient dealloc]): Release new mutable data ivar.
              (-[WebMainResourceClient resourceData]): Added accessor method.
              (-[WebMainResourceClient handleDidReceiveData:data:]): Append received data to the new mutable data object.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1957 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7e40ab00
    • darin's avatar
      * WebCore.pbproj/project.pbxproj: · bbe89dd8
      darin authored
              * kwq/KWQObject.mm:
              * kwq/KWQPainter.mm:
              * kwq/KWQTimer.mm:
              * kwq/WebCoreCookieAdapter.h:
              * kwq/WebCoreImageRenderer.h:
              * kwq/WebCoreImageRendererFactory.h:
      	Tweaks, no substantive changes.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1956 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      bbe89dd8
  2. 03 Sep, 2002 6 commits
    • sullivan's avatar
      * Resources/url_icon.tiff: New image (still a placeholder) · 8356c2e7
      sullivan authored
      	from HI. For the moment the default page icon is the legendary
      	@-sign-on-a-spring. I've been promised a replacement by
      	tomorrow sometime.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1955 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8356c2e7
    • sullivan's avatar
      WebKit: · 016203ef
      sullivan authored
      	- removed small folder image used for bookmark lists; it is now
      	up to clients to display an icon for bookmark lists.
      
              * Bookmarks.subproj/WebBookmarkList.h: Removed _icon ivar
              * Bookmarks.subproj/WebBookmarkList.m:
              (-[WebBookmarkList dealloc]): Don't release _icon
              (-[WebBookmarkList icon]): just return nil
              * Resources/bookmark_folder.tiff: Removed.
              * WebKit.pbproj/project.pbxproj: Updated for removed file.
      
      WebBrowser:
      
      	- made Favorites bar handle folder icons
      	- made bookmarks view start with all top-level folders expanded
      	- fixed bug where bookmarks outline would sometimes have horizontal
      	scroll bar (which you couldn't get rid of)
      	- fixed bug where bookmarks window (Debug menu) wouldn't start
      	with outline view focused (so some menu items were disabled)
      
              * Resources/Images/folder16.tiff: Added. Small folder icon.
              * Resources/Images/folder32.tiff: Added. Bigger folder icon.
              * WebBrowser.pbproj/project.pbxproj: Updated for new images.
      
              * BookmarksController.m:
              (-[BookmarksController imageForBookmark:]): return small folder icon
      
              * BookmarksViewController.m:
              (-[BookmarksViewController expandTopLevelItems]): New method.
              (-[BookmarksViewController awakeFromNib]): Call expandTopLevelItems.
      
              * BookmarksWindowController.m:
              (-[BookmarksWindowController windowDidLoad]): set outline view as first responder;
      	this handled in the mode-switching code in the bookmarks-in-browser-window case.
      
              * FavoriteButton.m:
              (-[FavoriteButton buttonImageFromBookmark]): New method, extracted from setBookmark
      	and updated to handle large folder icons (will probably be consolidated with
      	[BookmarksController imageForBookmark:] soon)
              (-[FavoriteButton setBookmark:]): call buttonImageFromBookmark
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1954 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      016203ef
    • cblu's avatar
      WebKit: · cd430f3e
      cblu authored
      	- Moved the default icon method to WebIconDatabase
      	- Removed "icon URL" from the location change handler API
      
              * History.subproj/WebHistoryItem.m:
              (-[WebHistoryItem icon]): don't worry about iconForSiteURL:withSize: returning nil
              * Misc.subproj/WebIconDatabase.h:
              * Misc.subproj/WebIconDatabase.m:
              (-[WebIconDatabase iconForSiteURL:withSize:]): return defaultIconWithSize if none found
              (-[WebIconDatabase defaultIconWithSize:]): added, loads, caches default icon
              (-[WebIconDatabase _hasIconForSiteURL:]): added, called by webdatasource to determine if icon is necessary
              * Misc.subproj/WebIconDatabasePrivate.h: added _hasIconForSiteURL
              * Misc.subproj/WebIconLoader.h: removed default icon method
              * Misc.subproj/WebIconLoader.m: removed default icon method
              * Resources/url_icon.tiff: resized to 32 x 32
              * WebKit.exp: export symbol for a dictionary key
              * WebKit.pbproj/project.pbxproj:
              * WebView.subproj/WebDataSourcePrivate.m:
              (-[WebDataSource _loadIcon]): call _hasIconForSiteURL
              * WebView.subproj/WebHTMLView.m:
              (-[WebHTMLView mouseDragged:]): call defaultIconWithSize
              * WebView.subproj/WebLocationChangeHandler.h:
              * WebView.subproj/WebLocationChangeHandler.m:
              (-[WebLocationChangeHandler receivedPageIcon:forDataSource:]): renamed
      
      WebBrowser:
      
      	- Moved the default icon method to WebIconDatabase
      	- Removed "icon URL" from the location change handler API
      
              * ABHomePagesController.m:
              (-[ABHomePagesController tableView:willDisplayCell:forTableColumn:row:]): call defaultIconWithSize
              * BrowserWindowController.m:
              (-[BrowserWindowController frameLoadCommitted:]): call defaultIconWithSize
              (-[BrowserWindowController setUpFavoritesBar]): call defaultIconWithSize
              * LocationChangeHandler.m:
              (-[LocationChangeHandler receivedPageIcon:forDataSource:]): renamed, don't use icon URL anymore
              * LocationTextField.m:
              (-[LocationTextField setDisplayAttributes]): call defaultIconWithSize
              (-[LocationTextField textDidChange:]): call defaultIconWithSize
              * RendezvousController.m:
              (-[RendezvousController _iconForServiceDictionary:]): call defaultIconWithSize
              * TitleBarButton.m:
              (-[TitleBarButton initWithFrame:]): call defaultIconWithSize
              * WebBrowser.pbproj/project.pbxproj:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1953 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      cd430f3e
    • kocienda's avatar
      WebFoundation: · aa873226
      kocienda authored
      	More work on WebFoundation refactoring. This change concentrates on two
      	major areas:
      
      	1) Cleaning up the WebResourceHandle class by separating out the methods
      	   of this class into separate files based on method visibility.
      
      	2) Added a new WebResourceRequest class that serves to collect the
      	   information about a load request instead of having this information
      	   sprinkled through the WebResourceHandle class.
      
      	With this initial WebResourceRequest revision, there isn't very much extra or
      	different about the API or the way clients use WebFoundation. Further changes
      	are planned very soon. These upcoming changes and will modify and enhance the API.
      
      	Note that these changes, while they touch a lot of code, should not break any
      	functionality of the framework or of Alexander.
      
      WebKit:
      
      	Modify calls into WebFoundation to use the new WebResourceRequest class,
      	and the modified API that kicks off load requests using WebResourceHandle.
      	More changes are planned for this code as the WebFoundation API modifications
      	progress.
      
              * Misc.subproj/WebIconDatabase.m:
              (-[WebIconDatabase _iconForFileURL:withSize:])
              * Misc.subproj/WebIconLoader.m:
              (-[WebIconLoader startLoading])
              * Plugins.subproj/WebPluginStream.m:
              (-[WebNetscapePluginStream startLoad])
              * WebCoreSupport.subproj/WebBridge.m:
              (-[WebBridge objectLoadedFromCache:size:])
              * WebCoreSupport.subproj/WebSubresourceClient.m:
              (+[WebSubresourceClient startLoadingResource:withURL:dataSource:])
              * WebKit.pbproj/project.pbxproj:
              * WebView.subproj/WebControllerPrivate.m:
              (-[WebController _receivedError:forResourceHandle:partialProgress:fromDataSource:])
              * WebView.subproj/WebDataSourcePrivate.m:
              (-[WebDataSource _startLoading:])
      
      WebBrowser:
      
      	Small tweaks to use new WebFoundation WebResourceRequest object when requesting
      	the "original URL" for a load.
      
              * BrowserWebController.m:
              (-[BrowserWebController receivedProgress:forResourceHandle:fromDataSource:complete:])
              (-[BrowserWebController receivedError:forResourceHandle:partialProgress:fromDataSource:])
              * WebBrowser.pbproj/project.pbxproj
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1952 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      aa873226
    • darin's avatar
      Fix a reproducible crash pulling down the Go menu. · 116facd3
      darin authored
              * Misc.subproj/WebIconDatabase.m: (-[WebIconDatabase _iconForFileURL:withSize:]):
      	Add a missing retain.
      
              * WebKit.pbproj/project.pbxproj: Project Builder wants what it wants.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1951 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      116facd3
    • cblu's avatar
      WebKit: · 74610cc2
      cblu authored
      	First implementation of the icon DB.
      
              * History.subproj/WebHistoryItem.m:
              (-[WebHistoryItem _retainIconInDatabase:]): calls retainIconForSiteURL: or releaseIconForSiteURL:
              (-[WebHistoryItem initWithURL:target:parent:title:]): call _retainIconInDatabase:
              (-[WebHistoryItem dealloc]): call _retainIconInDatabase:
              (-[WebHistoryItem icon]): call iconForSiteURL:withSize:
              (-[WebHistoryItem setURL:]): call _retainIconInDatabase:
              (-[WebHistoryItem initFromDictionaryRepresentation:]): call _retainIconInDatabase:
              * Misc.subproj/WebIconDatabase.h: Added.
              * Misc.subproj/WebIconDatabase.m: Added.
              (+[WebIconDatabase sharedIconDatabase]):
              (-[WebIconDatabase init]):
              (-[WebIconDatabase iconForSiteURL:withSize:]):
              (-[WebIconDatabase setIcon:forSiteURL:]):
              (-[WebIconDatabase setIcon:forHost:]):
              (-[WebIconDatabase retainIconForSiteURL:]):
              (-[WebIconDatabase releaseIconForSiteURL:]):
              (-[WebIconDatabase delayDatabaseCleanup]):
              (-[WebIconDatabase allowDatabaseCleanup]):
              (-[WebIconDatabase applicationWillTerminate:]):
              (-[WebIconDatabase _createFileDatabase]):
              (-[WebIconDatabase _loadIconDictionaries]):
              (-[WebIconDatabase _updateFileDatabase]):
              (-[WebIconDatabase _iconForIconURL:]):
              (-[WebIconDatabase _iconsForIconURL:]):
              (-[WebIconDatabase _iconForFileURL:withSize:]):
              (-[WebIconDatabase _setIcon:forIconURL:]):
              (-[WebIconDatabase _setIconURL:forSiteURL:]):
              (-[WebIconDatabase _setBuiltInIcon:forHost:]):
              (-[WebIconDatabase _retainIconForIconURL:]):
              (-[WebIconDatabase _releaseIconForIconURL:]):
              (-[WebIconDatabase _retainFutureIconForSiteURL:]):
              (-[WebIconDatabase _releaseFutureIconForSiteURL:]):
              (-[WebIconDatabase _retainOriginalIconsOnDisk]):
              (-[WebIconDatabase _releaseOriginalIconsOnDisk]):
              (-[WebIconDatabase _sendNotificationForSiteURL:]):
              (-[WebIconDatabase _addObject:toSetForKey:inDictionary:]):
              (-[WebIconDatabase _uniqueIconURL]):
              (-[WebIconDatabase _cachedIconFromArray:withSize:]):
              (-[WebIconDatabase _scaleIcon:toSize:]):
              * Misc.subproj/WebIconDatabasePrivate.h: Added.
              * Misc.subproj/WebIconLoader.h:
              * Misc.subproj/WebIconLoader.m:
              (+[WebIconLoader iconForFileAtPath:]):
              (-[WebIconLoader startLoading]):
              (-[WebIconLoader handleDidFinishLoading:data:]):
              * WebKit.exp:
              * WebKit.pbproj/project.pbxproj:
              * WebView.subproj/WebDataSourcePrivate.m:
              (-[WebDataSource _loadIcon]):
      
      WebBrowser:
      
      	Start using the icon DB.
      
              * AppController.m:
              (-[AppController _installBuiltItIcons]):
              (-[AppController awakeFromNib]): call _installBuiltItIcons, there might be a better place for this.
              * LocationChangeHandler.m:
              (-[LocationChangeHandler receivedPageIcon:fromURL:forDataSource:]): use the icon db instead of the passed icon
              * WebBrowser.pbproj/project.pbxproj:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1950 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      74610cc2
  3. 02 Sep, 2002 1 commit
  4. 31 Aug, 2002 1 commit
    • darin's avatar
      - fixed 3038336 -- repro crash in QTextDecoder trying to display UTF-16 file · 9a55ff1f
      darin authored
              * kwq/mac-encodings.txt: Hook up the UTF-16 encoding to the name iso-10646-ucs-2.
      	We have a long way to go to get this right. There are almost certainly going to
      	be other bugs with 16-bit character pages.
      
              * kwq/KWQKHTMLSettings.mm: (KHTMLSettings::encoding): Just return "latin1",
      	not "NSISOLatin1StringEncoding".
      
              * kwq/KWQString.mm: (QString::fromStringWithEncoding): Pass true for the
      	"pay attention to BOM" flag.
      
              * khtml/rendering/render_object.cpp: Take out unneeded APPLE_CHANGES.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1948 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9a55ff1f
  5. 30 Aug, 2002 9 commits
    • kocienda's avatar
      Removed one last reference to the now-removed WebDefaultMIMEType symbol. · 339301e2
      kocienda authored
      	I missed it earlier.
      
              * WebView.subproj/WebMainResourceClient.m:
              (-[WebMainResourceClient handleDidReceiveData:data:])
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1947 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      339301e2
    • kocienda's avatar
      Fixed a problem in this function where broken UTF-8 would cause a crash. · 610d1dc7
      kocienda authored
              * WebCore.pbproj/project.pbxproj:
              * kwq/KWQString.mm:
              (QString::fromStringWithEncoding)
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1946 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      610d1dc7
    • kocienda's avatar
      WebFoundation: · e5f72416
      kocienda authored
      	Failed to remove debugging spam before my last checkin. Sorry.
      
              * CacheLoader.subproj/WebResourceHandle.m:
              (-[WebResourceHandle contentType])
              * CacheLoader.subproj/WebResourceLoadManager.m:
              (-[WebResourceLoadManager requestWithURLHandle:])
              * Misc.subproj/WebFileTypeMappings.m:
              (-[WebFileTypeMappings MIMETypeForExtension:])
      
      WebKit:
      
      	Failed to remove debugging spam before my last checkin. Sorry.
      
              * WebKit.pbproj/project.pbxproj:
              * WebView.subproj/WebControllerPrivate.m:
              (+[WebController _MIMETypeForFile:])
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1945 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e5f72416
    • kocienda's avatar
      WebFoundation: · ac92273a
      kocienda authored
      	Begin to refactor WebFoundation in preparation for some planned API changes.
      	This change removes all WebResourceHandle subclasses, pushing the functionality
      	that was contained in those classes to the corresponding WebProtocolHandler
      	subclasses. To make this work, I also did a small amount of mime type cleanup, and
      	as a bonus, I (unintentionally) managed to fix these two bugs:
      
      	Radar 3034795 (README fiel displays as HTML even though it's plain text)
      	Radar 3035320 (iana.org character sets page displays as HTML even though it's MIME type text/plain)
      
      	Bonus! :-)
      
      	Removed:
      
      	* CacheLoader.subproj/WebAboutResource.h
      	* CacheLoader.subproj/WebAboutResource.m
      	* CacheLoader.subproj/WebFileResourceHandle.h
      	* CacheLoader.subproj/WebFileResourceHandle.m
      	* CacheLoader.subproj/WebHTTPResourceHandle.h
      	* CacheLoader.subproj/WebHTTPResourceHandle.m
      
      WebKit:
      
              * WebView.subproj/WebControllerPrivate.m:
              (+[WebController _MIMETypeForFile:]): Small tweak to account for change
      	in behavior of a WebFoundation method upon which this method depends.
      	The WebFoundation now returns nil when it cannot find a suitable mime
      	type rather than returning a default. This function now checks for a nil
      	return value and sets @"application/octet-stream" in that case.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1944 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ac92273a
    • rjw's avatar
      Force clean for decoder.h buffer class change. · 54c87c1a
      rjw authored
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1943 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      54c87c1a
    • rjw's avatar
      Removed debugging log. · f330c5da
      rjw authored
              * kwq/KWQString.mm:
              (QString::fromStringWithEncoding):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1942 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f330c5da
    • rjw's avatar
      Made decoder more robust wrt nulls in content. Changed use · 0b46dc74
      rjw authored
              of QCString to null safe QString rather than modify
              content.
      
              * khtml/misc/decoder.cpp:
              (Decoder::decode):
              (Decoder::flush):
              * khtml/misc/decoder.h:
              * kwq/KWQString.mm:
              (QString::fromStringWithEncoding):
      
              Change link dragging behavior.  Drags URL, not URL contents.
              Still need to generate better image for dragging, will copy OmniWeb
              and drag link text.
      
              * WebView.subproj/WebHTMLView.m:
              (-[WebHTMLView mouseDragged:]):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1941 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0b46dc74
    • darin's avatar
      - fixed 3027407 -- Console error refers to closed bug · a44cf409
      darin authored
              * kwq/KWQKHTMLPartImpl.mm: (KWQKHTMLPartImpl::bridgeForFrameName):
      	Update bug number from 2959902 to 2942073.
      
      	- fixed 3027532 -- can't tab into or out of textareas
      
              * kwq/KWQTextArea.h: Add setFont:.
              * kwq/KWQTextArea.mm:
              (-[KWQTextArea _createTextView]): Make a KWQTextAreaTextView.
              (-[KWQTextArea textDidChange:]): Send text changed messages when the text
      	is changed, not when done editing. I did this for KWQNSTextField a while ago;
      	it's tragic that AppKit leads us to have two separate classes for these nearly
      	identical purposes.
              (-[KWQTextArea setFont:]): Call setFont on the text view.
              (-[KWQTextArea becomeFirstResponder]): Call makeFirstResponder on the text view.
              (-[KWQTextArea nextKeyView]): Do that voodoo, just like KWQNSTextField.
              (-[KWQTextArea previousKeyView]): Ditto.
              (-[KWQTextArea nextValidKeyView]): Ditto.
              (-[KWQTextArea previousValidKeyView]): Ditto.
              (-[KWQTextAreaTextView insertTab:]): Select the next key view. We don't get this
      	automatically because this is not a field editor. But being a field editor leads
      	to other unwanted behavior.
              (-[KWQTextAreaTextView insertBacktab:]): Ditto.
              (-[KWQTextAreaTextView becomeFirstResponder]): Select all on entry.
              (-[KWQTextAreaTextView shouldDrawInsertionPoint]): Don't draw insertion point
      	when we are not the first responder.
              (-[KWQTextAreaTextView selectedTextAttributes]): Don't draw the selection when
      	we are not the first responder.
      
              * kwq/qt/qtextedit.h:
              * kwq/KWQTextEdit.mm: (QTextEdit::setFont): Call -[KWQTextArea setFont:].
              (QTextEdit::focusPolicy): Always return TabFocus, because the top level widget
      	is not an NSControl so QWidget::focusPolicy does not suffice.
      
              * kwq/qt/qwidget.h: Make focusPolicy virtual.
      
              * kwq/qt/qfont.h:
              * kwq/KWQFont.mm: (QFont::getNSFont): Add this helper function
      	so we don't have to repeat this in multiple places.
      
              * kwq/KWQLineEdit.mm: (QLineEdit::setFont): Use QFont::getNSFont.
      
              * force-clean-timestamp: For you poor bastards who aren't using the new
      	Project Builder yet.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1940 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a44cf409
    • darin's avatar
      JavaScriptCore: · 17f5929c
      darin authored
              * JavaScriptCore.pbproj/project.pbxproj: Allowed the new Project Builder to put in
      	encodings for each file.
      
      WebFoundation:
      
              * WebFoundation.pbproj/project.pbxproj: Allowed the new Project Builder to put in
      	encodings for each file.
      
      WebCore:
      
              * WebCore.pbproj/project.pbxproj: Allowed the new Project Builder to put in
      	encodings for each file.
      
      WebKit:
      
              * WebKit.pbproj/project.pbxproj: Allowed the new Project Builder to put in
      	encodings for each file.
      
      WebBrowser:
      
              * WebBrowser.pbproj/project.pbxproj: Allowed the new Project Builder to put in
      	encodings for each file.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1939 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      17f5929c
  6. 29 Aug, 2002 3 commits
    • hyatt's avatar
      Begin connecting the layer system. The root box and the <html> · 130a831d
      hyatt authored
      	box now construct layers for themselves.  Those layers are
      	connected in a layer tree properly and they correctly update
      	their positions.
      
      	Implemented all the code for layer construction and for keeping
      	the layer tree in sync with the render object tree.
      
      	The goal is to get the layer tree fully constructed and correct
      	(with lots of testing) before actually switching over to it for
      	painting.
      
      	This change requires a clean of WebCore.
      
              * force-clean-timestamp:
              * khtml/rendering/render_box.cpp:
              (RenderBox::RenderBox):
              (RenderBox::~RenderBox):
              (RenderBox::setPos):
              (RenderBox::positionChildLayers):
              * khtml/rendering/render_box.h:
              * khtml/rendering/render_container.cpp:
              (RenderContainer::~RenderContainer):
              (RenderContainer::addChild):
              (RenderContainer::removeChildNode):
              * khtml/rendering/render_container.h:
              * khtml/rendering/render_html.cpp:
              (RenderHtml::RenderHtml):
              * khtml/rendering/render_layer.cpp:
              (RenderLayer::updateLayerPosition):
              * khtml/rendering/render_layer.h:
              * khtml/rendering/render_object.h:
              * khtml/rendering/render_root.cpp:
              (RenderRoot::RenderRoot):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1938 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      130a831d
    • sheridan's avatar
      Alex-21 versions & markers · 34ead614
      sheridan authored
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1936 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      34ead614
    • hyatt's avatar
      Implement the flattening algorithm that walks the layer · 1fc4d49f
      hyatt authored
      	hierarchy and produces the correct layer list for back
      	to front painting.  (Still under construction.  Not used yet.)
      
              * khtml/rendering/render_layer.cpp:
              (sortByZOrder):
              (RenderLayer::RenderZTreeNode::constructLayerList):
              * khtml/rendering/render_layer.h:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1935 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      1fc4d49f
  7. 28 Aug, 2002 10 commits
  8. 27 Aug, 2002 3 commits
    • darin's avatar
      * force-clean-timestamp: Dave's changes require a full build. I found out the · 5b4129d2
      darin authored
      	hard way, by debugging for a while.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1924 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5b4129d2
    • rjw's avatar
      i · 510de805
      rjw authored
              * WebView.subproj/WebHTMLView.m:
              (-[WebHTMLView mouseDown:]):
              (-[WebHTMLView mouseDragged:]):
              (-[WebHTMLView mouseMovedNotification:]):
              * WebView.subproj/WebHTMLViewPrivate.h:
              * WebView.subproj/WebHTMLViewPrivate.m:
      
              Fixed active link style.  Cleaned up and fixed drag initiation
              for links and images.  Dotted lines not drawing correcly, but
              other styles are applied correctly.
      
              * WebKit.exp:
              * History.subproj/WebHistory.h:
              * History.subproj/WebHistory.m:
      
              Added some constants.
      
              * WebCoreSupport.subproj/WebTextRendererFactory.m:
      
              Code to change CG caching policy.  Not enabled until
              we receive a root from CG team.
      
              * kwq/WebCoreBridge.h:
      
              Fixed constants to conform to WebKit.  These need to be shared.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1923 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      510de805
    • hyatt's avatar
      Change relative positioned blocks so that they are treated as special objects and · 8dc5fa9f
      hyatt authored
      	painted last along with absolutely positioned blocks and floaters.  Note that the
      	entire special object system is fundamentally flawed, and it needs to be replaced
      	with a real layering subsystem.
      
      	This checkin at least gets relatively positioned divs painting correctly some of
      	the time (in the cases where the containing blocks of absolute and relative positioned
      	divs happen to be the same).  It does not, however, deal with the problem of ensuring
      	correct stacking of positioned elements with different containing blocks.
      
      	render_layer.h and .cpp include a new implementation (not used yet, just the beginnings)
      	of a layering subsystem that I am going to be working on over the next few days
      	that will eventually be responsible for handling event dispatching and painting and that
      	will also understand how to deal with form controls and other objects that have Cocoa
      	views.
      
              * WebCore.pbproj/project.pbxproj:
              * khtml/rendering/render_box.cpp:
              (RenderBox::RenderBox):
              * khtml/rendering/render_box.h:
              * khtml/rendering/render_flow.cpp:
              (RenderFlow::printObject):
              (RenderFlow::printSpecialObjects):
              (RenderFlow::layoutSpecialObjects):
              (RenderFlow::layoutBlockChildren):
              (RenderFlow::insertSpecialObject):
              * khtml/rendering/render_flow.h:
              * khtml/rendering/render_layer.cpp: Added.
              (RenderLayer::RenderLayer):
              (RenderLayer::~RenderLayer):
              (RenderLayer::addChild):
              (RenderLayer::removeChild):
              * khtml/rendering/render_layer.h: Added.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1922 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8dc5fa9f