- 21 Mar, 2002 5 commits
-
-
rjw authored
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@797 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
rjw authored
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@796 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
rjw authored
refresh support. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@795 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
kocienda authored
Fixed an issue with the disk cache taking too long to empty. Now, the disk cache is emptied on a background thread. * Database.subproj/IFURLFileDatabase.h: * Database.subproj/IFURLFileDatabase.m: (-[IFURLFileDatabase removeAllObjects]): * Misc.subproj/IFNSFileManagerExtensions.h: * Misc.subproj/IFNSFileManagerExtensions.m: (-[NSFileManager performRemoveFileAtPath:]), (-[NSFileManager backgroundRemoveFileAtPath:]): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@794 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
sullivan authored
IFPreferences now registers the defaults at load time, early enough that Alexander doesn't have to register them separately as it had been. Also, all the defaults currently in use now have accessor cover methods, which Alexander will use exclusively. * WebView.subproj/IFPreferences.mm: New file, registers defaults and implements cover methods. * WebView.subproj/IFPreferences.h: This file existed but wasn't being used (contents #ifdeffed out). Now it declares the cover methods, but still has an #ifdeffed section for possible future stuff. * WebKit.pbproj/project.pbxproj: Updated for new file. * WebView.subproj/IFWebDataSource.mm: (+[IFWebDataSource initialize]): removed defaults-registration from here. Reworked access of WebKit preferences. Now they are always accessed through IFPreferences cover methods, never directly. * Defaults.plist, * PreferenceKeys.h: Took out all mention of WebKit preferences. * Preferences.subproj/ActiveContentPreferences.m: (-[ActiveContentPreferences toggleJavaEnabled:]), (-[ActiveContentPreferences toggleJavaScriptEnabled:]), (-[ActiveContentPreferences toggleJavaScriptCanOpenWindows:]), (-[ActiveContentPreferences updateJavaScriptViews]), (-[ActiveContentPreferences togglePluginsEnabled:]), (-[ActiveContentPreferences initializeFromDefaults]): * Preferences.subproj/TextPreferences.m: (-[TextPreferences defaultFontSize]), (-[TextPreferences setDefaultFontSize:]), (-[TextPreferences updateFontSampleField:]), (-[TextPreferences changeFont:]), (-[TextPreferences takeStandardFontChoiceFrom:]): Rewrote to use IFPreferences for all WebKit preferences. * WebBrowser.pbproj/project.pbxproj: version wars git-svn-id: http://svn.webkit.org/repository/webkit/trunk@793 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 20 Mar, 2002 1 commit
-
-
sullivan authored
used in menu items, window titles, etc. Alexander uses this to cache the center-truncated title for pages with very long titles. * History.subproj/IFURIEntry.h: * History.subproj/IFURIEntry.m: (-[IFURIEntry setDisplayTitle:]), (-[IFURIEntry dictionaryRepresentation]), (-[IFURIEntry initFromDictionaryRepresentation:]): Made Go, Window, and Debug menus use center-truncated strings for long URLs. * StringTruncator.h, * StringTruncator.m: New class, donated by Albert Dul, that truncates a string to a given width, inserting an ellipses in the center. * Defaults.plist, * PreferenceKeys.h: New (non-UI) user default for maximum menu item width. * AppController.h: * AppController.m: (-[AppController setUpStringTruncator]): set the StringTruncator to use the menu font at the menu font size. (-[AppController awakeFromNib]): call setUpStringTruncator. (_URLMenuTitleMaxWidth): read the max width from prefs and cache it in a variable. (-[AppController menuTitleForURL:withTitle:]): New method, uses center-truncated string technology. (-[AppController _menuTitleForURIEntry:]): Calls menuTitleForURL:withTitle, storing result using -[IFURIEntry setDisplayTitle] so we never have to measure this entry again. (-[AppController insertHistoryEntry:intoMenu:atIndex:]): Use _menuTitleForURIEntry. (-[AppController _removeHistoryFromMenu]): added leading underscore to name (I gotta do this more systematically). (-[AppController _addHistoryToMenu]): broke out into separate method for convenience. (-[AppController updateHistoryInMenu]): report timing with WebKitDebug * BrowserDocument.m: (-[BrowserDocument displayName]): Use center-truncated string technology. * Debug/DebugUtilities.m: (+[DebugUtilities addBookmarkToMenu:forURL:keyEquivalent:]), (+[DebugUtilities loadDebugBookmarks:]): Use center-truncated string technology for debug bookmarks (not cached). * WebBrowser.pbproj/project.pbxproj: Updated for new files. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@792 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 19 Mar, 2002 4 commits
-
-
rjw authored
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@787 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
rjw authored
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@785 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
rjw authored
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@783 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
rjw authored
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@780 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 18 Mar, 2002 9 commits
-
-
darin authored
small lists. Also special case for lists of size 2 and under. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@778 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
rjw authored
Improved core measurement routine. Turned off logging by default. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@777 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
darin authored
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@776 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
kocienda authored
Changed file load thread so that it tries to use a memory-mapped file to read from the file system instead of using CFStreams. Now more than 2x faster. * CacheLoader.subproj/IFFileURLProtocolHandler.h: * CacheLoader.subproj/IFFileURLProtocolHandler.m: (-[IFFileURLProtocolHandler didLoadData:]), (-[IFFileURLProtocolHandler fileLoadThread]), (-[IFFileURLProtocolHandler beginLoadInBackground]), (-[IFFileURLProtocolHandler endLoadInBackground]): Changed instance of memcpy to the new IFFastMemoryMove function * CacheLoader.subproj/IFHTTPURLProtocolHandler.m: (-[IFHTTPURLProtocolHandler performStreamRead:]): Moved timeout back to 60 seconds from 240 seconds. * CacheLoader.subproj/IFURLLoad.m: NSData now reads from a mapped file instead of using NSFileManager to read the file. * Database.subproj/IFURLFileDatabase.m: (-[IFURLFileDatabase objectForKey:]): * WebFoundation.pbproj/project.pbxproj: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@775 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
darin authored
Sadly, this doesn't seem to make things measurably faster, but I decided to commit my work rather than discarding it; it doesn't make things slower. * src/kwq/qt/qstring.h: * src/kwq/KWQChar.mm: * src/kwq/KWQString.mm: Do a lot more inlining. Also, the CFStringRef inside a QString is now never nil, so we can get rid of many checks for nil. * src/kwq/KWQFontMetrics.mm: (QFontMetrics::width): Use _rectForString() a couple more places. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@774 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
rjw authored
unnecessary NSString allocation. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@773 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
sullivan authored
cvs in new update line; makes it work on appecvs-encrusted Jaguars again. Imposed age limit on history items saved to/loaded from disk. Sped up history loading by reversing list before processing entries. * History.subproj/IFWebHistoryPrivate.m: (+[IFWebHistoryPrivate initialize]): Register default for age limit. (-[IFWebHistoryPrivate _ageLimitDate]): New convenience method, returns a date older than any history entry that should be stored/loaded. (-[IFWebHistoryPrivate arrayRepresentation]): skip too-old dates. (-[IFWebHistoryPrivate _loadHistoryGuts:]), (-[IFWebHistoryPrivate _saveHistoryGuts:]): Broke into separate methods to make timing wrapper less messy. Respect age limit. Report number of items saved/loaded in timing message. (-[IFWebHistoryPrivate loadHistory]), (-[IFWebHistoryPrivate saveHistory]): use broken-out _guts methods. * WebKit.pbproj/project.pbxproj: version wars git-svn-id: http://svn.webkit.org/repository/webkit/trunk@772 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
darin authored
(QFontMetrics::width), (QFontMetrics::_width), (QFontMetrics::boundingRect), (QFontMetrics::size): Don't make the info object right away, in case the metrics object is only used to compute ascent and descent. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@771 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
kocienda authored
I reworked the code a bit in IFURLLoadManager so I could remove some more locking and made the locking that still needs to be there more fine grained. * CacheLoader.subproj/IFURLLoadManager.m: (-[IFURLLoadManager objectForURL:]), (-[IFURLLoadManager setObject:forURL:attributes:expiry:]), (-[IFURLLoadManager invalidateURL:]), (-[IFURLLoadManager clearAllCaches]), (-[IFURLLoadManager cancelRequestWithURLHandle:]), (-[IFURLLoadManager cancelAllRequestsWithURL:]), (-[IFURLLoadManager cancelAllRequestsInGroup:]): Some small code clean ups here. * Database.subproj/IFURLFileDatabase.m: (-[IFURLFileDatabase initWithPath:]), (-[IFURLFileDatabase setObject:forKey:]), (-[IFURLFileDatabase removeObjectForKey:]), (-[IFURLFileDatabase objectForKey:]), (-[IFURLFileDatabase open]): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@770 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 17 Mar, 2002 1 commit
-
-
rjw authored
performance gains. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@768 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 16 Mar, 2002 2 commits
-
-
rjw authored
provisional widget. Temporary hack to bypass spin-o-death problem. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@767 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
rjw authored
Need to sanitize KHTMLPart further. Changed stop to use stopLoading on frame instead of datasource. Fixed error handling. Fixed most frame loading problems. Cleaned up frame state machine. Moved IFMainURLHandleClient from WebCore. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@765 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 15 Mar, 2002 10 commits
-
-
rjw authored
Increased fragment cache initial size. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@756 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
cblu authored
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@755 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
sullivan authored
saved/loaded. Also instrumented timing for saving/loading history. * History.subproj/IFWebHistoryPrivate.m: (+[IFWebHistoryPrivate initialize]): register default for WebKitHistoryItemLimit. (-[IFWebHistoryPrivate arrayRepresentation]): respect limit (-[IFWebHistoryPrivate loadHistory]): respect limit, time the load. (-[IFWebHistoryPrivate saveHistory]): time the save. * WebKit.pbproj/project.pbxproj: version wars * Debug/DebugUtilities.m: (-[IFWebHistory populateHistoryWithTestData:]): Changed number of items generated by Populate History menu item to 1000. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@754 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
rjw authored
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@753 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
sullivan authored
accident in some cases. Made IFWebHistory no longer be a singleton class; made the file location be passed in at init time. * History.subproj/IFURIEntry.m: (-[IFURIEntry image]): Get the default image a way that works with frameworks; only get the default image once. * History.subproj/IFWebHistory.h: * History.subproj/IFWebHistory.m: (+[IFWebHistory webHistoryWithFile:]): New convenience constructor that returns a new IFWebHistory object with a particular disk file. (-[IFWebHistory initWithFile:]): New init method for specifying a disk file. (-[IFWebHistory file]): New accessor for file path. (-[IFWebHistory loadHistory]), (-[IFWebHistory saveHistory]): Use file accessor. Also removed the methods that were computing a file path to use. * History.subproj/IFWebHistoryPrivate.h: * History.subproj/IFWebHistoryPrivate.m: (-[IFWebHistoryPrivate initWithFile:]), (-[IFWebHistoryPrivate dealloc]), (-[IFWebHistoryPrivate file]), (-[IFWebHistoryPrivate loadHistory]), (-[IFWebHistoryPrivate saveHistory]): Guts of implementation for file-manipulation stuff. * Resources/url_icon.tiff: ran tiffUtil to premultiply the alpha channel. This was spewing error messages that I didn't notice before because they only happen on Puma and I was on Jaguar. * WebKit.pbproj/project.pbxproj: not sure what change I made, maybe version wars. Made app's IFWebHistory object come from AppController rather than using the now-obsolete sharedWebHistory; made Populate History Debug item create a large number of items so I can test the performance of loading them; added Erase All History item to Debug menu for convenience. * AppController.h: * AppController.m: (GetRefPath), (FindFolderPath), (-[AppController _computeHistoryFilePath]): New methods, moved from IFWebHistory, to determine the file path for the History file. (-[AppController webHistory]): new method to get at app-wide IFWebHistory. (-[AppController awakeFromNib]), (-[AppController dealloc]), (-[AppController applicationWillTerminate:]), (-[AppController insertItemsForDate:intoMenu:atIndex:withRunningTotal:limit:]), (-[AppController updateHistoryInMenu]): Updated to use [AppController webHistory] instead of [IFWebHistory sharedWebHistory] * BrowserDocument.m: (-[BrowserDocument addHistoryEntryForCurrentPage]): Updated to use [AppController webHistory] instead of [IFWebHistory sharedWebHistory] * Debug/DebugUtilities.m: (+[DebugUtilities createDebugMenu]): Added Erase All History and separator. (-[IFWebHistory populateHistoryWithTestData:]): Changed approach. It used to read a few valid URLs from a disk file; now it creates a lot of bogus ones. * Debug/FakeHistory.plist: Removed this list now that Populate History computes items from scratch. * GlobalHistory.m: (+[GlobalHistory sharedGlobalHistory]), (-[GlobalHistory webHistory]), (-[GlobalHistory init]), (-[GlobalHistory outlineView:child:ofItem:]), (-[GlobalHistory outlineView:numberOfChildrenOfItem:]), (-[GlobalHistory receivedEntriesChangedNotification:]), (-[GlobalHistory removeSelectedItems:]), (-[GlobalHistory removeAll:]): Updated to use AppController's webHistory instead of [IFWebHistory sharedWebHistory] * WebBrowser.pbproj/project.pbxproj: updated for removed file git-svn-id: http://svn.webkit.org/repository/webkit/trunk@752 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
darin authored
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@751 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
darin authored
that I should have left in there. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@750 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
darin authored
* src/kwq/KWQChar.mm: (QChar::QChar): Handle characters > 0x7F correctly. (QChar::cell): Remove unnecessary & operation. (QChar::row): Remove unnecessary & operation. (QChar::latin1): Do a simpler check rather than calling row(). (QChar::operator char): Do the same work as latin1 inline. (operator==) (operator!=), (operator>=), (operator>), (operator<=), (operator<): Handle characters > 0x7F correctly. * src/kwq/KWQFontMetrics.mm: (QFontMetrics::ascent), (QFontMetrics::descent): Cache the ascent and descent rather than computing it each time we are called. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@749 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
darin authored
characters, and copying QFontMetrics objects. Makes loading NSView.html about 18% faster. * src/kwq/qt/qfontmetrics.h: Use a ref-counted pointer so QFontMetrics objects for the same QFont can share data. * src/kwq/KWQFont.mm: (loadDefaultFont): New, used to load the default font used for default-initialized QFont objects. (QFont::_initializeWithFont): Don't recompute theh family name, point size, or traits. (QFont::setFamily), (QFont::setPixelSizeFloat), (QFont::setWeight), (QFont::setItalic),: autorelease the font, as we do in the destructor, since someone could still be using the result of getFont. (QFont::operator==): Add a comment about a problem with this function. * src/kwq/KWQFontMetrics.mm: (QFontMetrics::QFontMetrics): Add a refCount, and a cached width for space and lower-case "x", the two single characters that are often measured. (QFontMetrics::~QFontMetrics): Simplify. (QFontMetrics::operator=): Just copy the underlying data pointer rather than making our own KWQLayoutInfo object. (QFontMetrics::baselineOffset): Make const. (QFontMetrics::width): Add the caching for space and "x". git-svn-id: http://svn.webkit.org/repository/webkit/trunk@748 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
rjw authored
strings. QString::gstring_toQString and QString::gstring_toCFString were added to simplify the reuse of a static CFString as the backing store for local QStrings. Hit the top two problem areas. Many more gains to be had by using this technique. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@747 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 14 Mar, 2002 7 commits
-
-
rjw authored
Added dangerous but fast string allocation optimization to render_text.cpp. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@746 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
rjw authored
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@744 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
rjw authored
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@742 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
rjw authored
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@741 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
sullivan authored
* History.subproj/IFWebHistoryPrivate.m: (GetRefPath), (FindFolderPath): Functions copied from NSSavePanel.m for using FindFolder in a POSIX sort of way. Ken plans to put some version of this in IFNSFileManagerExtensions eventually, which I'll switch to later. (-[IFWebHistoryPrivate historyFilePath]): Construct the path using FindFolderPath and the file name. (-[IFWebHistoryPrivate loadHistory]), (-[IFWebHistoryPrivate saveHistory]): failure case debug messages are now more specific. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@740 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
kocienda authored
Fix for this bug: Radar 2877924 ("/Users is not a directory" warning when /Users is a link to a directory) In addition, the URL file database is now much more "optimistic" about creating directories and files. The result should be a whole lot less chatter on fs_usage. * Database.subproj/IFURLFileDatabase.m: (-[IFURLFileDatabase setObject:forKey:]), (-[IFURLFileDatabase open]): * Misc.subproj/IFNSFileManagerExtensions.h: * Misc.subproj/IFNSFileManagerExtensions.m: (-[NSFileManager createFileAtPathWithIntermediateDirectories:contents:attributes:directoryAttribut es:]), (-[NSFileManager createIntermediateDirectoriesForPath:attributes:]), (-[NSFileManager fileExistsAtPath:isDirectory:traverseLink:]): * WebFoundation.pbproj/project.pbxproj: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@739 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
rjw authored
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@738 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 13 Mar, 2002 1 commit
-
-
rjw authored
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@737 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-