Timeline



May 10, 2002:

4:08 PM Changeset in webkit [1136] by rjw
  • 4 edits in trunk/WebCore

Made log output match webkit logging.

4:07 PM Changeset in webkit [1135] by rjw
  • 8 edits
    1 add in trunk/WebKit

Logging changes.

3:28 PM Changeset in webkit [1134] by cblu
  • 13 edits in trunk

WebKit:

Added support for non-html non-file URL data sources.
Added the init methods below. Removed initWithHandle.

  • WebView.subproj/IFWebDataSource.h:
  • WebView.subproj/IFWebDataSource.mm: (IFWebDataSourceMake): (-[IFWebDataSource initWithURL:]): (-[IFWebDataSource initWithURL:attributes:]): (-[IFWebDataSource startLoading:]):

WebCore:

Changed WCIFWebDataSourceMake to wrap around [IFWebDataSource initWithUR

L: attributes: flags:]

instead of initWithHandle.

  • kwq/KWQKHTMLPart.mm: (KHTMLPart::requestFrame): (KHTMLPart::submitForm):
  • kwq/WCWebDataSource.h:
  • libwebcore.exp:
3:16 PM Changeset in webkit [1133] by darin
  • 3 edits in trunk/WebCore

Fixed 2923728 (ellipsizing text method is taking a lot of CPU time) by writing a
new string truncator that uses fast text measurement.

  • AppController.m: (-[AppController awakeFromNib]): Remove _setUpStringTruncator.
  • BrowserDocument.h: Remove _cachedPageName; it was not doing any good.
  • BrowserDocument.m: (-[BrowserDocument dealloc]): No need to release _cachedPageName. (-[BrowserDocument pageName]): No need to use _cachedPageName. (-[BrowserDocument _updateWindowTitles]): Name change.
  • StringTruncator.h: Rewrite. Only the name is the same.
  • StringTruncator.m: (+[StringTruncator centerTruncateString:length:omitCount:toBuffer:]): Does the work of removing the middle of a string. (+[StringTruncator centerTruncateString:toWidth:]): Convenience cover version that uses the menu font. (+[StringTruncator centerTruncateString:toWidth:withFont:]): The code to do the truncating.
  • TextCell.m: (-[TextCell drawInteriorWithFrame:inView:]): Use the new truncator interface that takes a font, not the old one that took an attributes dictionary.
  • WebBrowser.pbproj/project.pbxproj: Some little tweak.
3:11 PM Changeset in webkit [1132] by darin
  • 11 edits in trunk/WebKit
  • WebCoreSupport.subproj/IFTextRenderer.h: Moved most of the stuff from here into the .m file so this header can be included by clients. Also added floatWidthForCharacters:length:.
  • WebCoreSupport.subproj/IFTextRenderer.m: (freeWidthMap): Check for NULL. (freeGlyphMap): Check for NULL. (-[IFTextRenderer slowFloatWidthForCharacters:length:]): Renamed, and made it return the float. (-[IFTextRenderer floatWidthForCharacters:length:]): Renamed, and made it return the float. (-[IFTextRenderer widthForCharacters:length:]): Do rounding here.
  • WebCoreSupport.subproj/IFTextRendererFactory.h:
  • WebCoreSupport.subproj/IFTextRendererFactory.m: Make the interface slightly easier to use by using the specific types.
  • WebKit.pbproj/project.pbxproj: Exported the headers.
2:51 PM Changeset in webkit [1131] by kocienda
  • 5 edits in trunk/WebKit

2002-05-10 Kenneth Kocienda <kocienda@apple.com>

Fixed build breakage caused by my previous checkin.

  • WebView.subproj/IFMainURLHandleClient.mm: (-[IFMainURLHandleClient IFURLHandle:resourceDataDidBecomeAvailable:])
2:25 PM Changeset in webkit [1130] by sullivan
  • 8 edits
    1 add in trunk/WebKit

Fixed 2922756 (@ image in History window is a little too tall)
Fixed 2923790 (bookmark folders need folder icons)

  • Resources/bookmark_folder.tiff: New image (small folder, copied from elsewhere)
  • Resources/url_icon.tiff: Shrunk this one a little bit.
  • Bookmarks.subproj/IFBookmarkList.m: (-[IFBookmarkList image]): Return the default image if no custom image is set.
  • History.subproj/IFURIEntry.m: (-[IFURIEntry image]): If the default image's file isn't found, don't try to create an NSImage, because it will come out horribly broken and evil if you do (I ran into this while adding the bookmark folder image; most of Alexander's menus did not appear at all because the bookmark folder image was using a bogus NSImage).
  • WebKit.pbproj/project.pbxproj: Updated for new files.

Fixed 2922745 (Bookmark and History window should use same font size)
Fixed 2923792 (All buttons in Bookmarks window look the same)

  • Resources/Images/new_bookmark.tiff: Added.
  • Resources/Images/new_folder.tiff: Added.
  • Resources/Images/pencil.tiff: Added. New images for buttons in Bookmarks window. new_folder was stolen from Finder; pencil was stolen from Mail; new_bookmark is a Sullivan Original™.
  • AppController.m: (-[AppController _addBookmarksToMenu]): (-[AppController _updateBookmarksInMenu]): Remove count of bookmarks from debug timing message since it wasn't counting deep.
  • BookmarksController.m: (-[BookmarksController toolbar:itemForItemIdentifier:willBeInsertedIntoToolbar:]): Use the right images for the right buttons.
  • English.lproj/Bookmarks.nib: Change the font size to match History window.
  • WebBrowser.pbproj/project.pbxproj: Updated for new files.
2:07 PM Changeset in webkit [1129] by kocienda
  • 8 edits in trunk/WebKit

2002-05-10 Kenneth Kocienda <kocienda@apple.com>

Reviewed by: Maciej Stachowiak

WebFoundation:

This set of changes enhances the IFError object with two new pieces of
information:

1) An error domain, to help separate error codes from different
sources that may overlap

2) An indicator of whether the error should be treated as "terminal" by
code that receives and handles the error.

I have added a couple of other cleanups in this class, as described by
the bugs noted below.

The other code in this set of changes was modified to use the new interface
and features of IFError.

Fixes for these four bugs:

Radar 2923998 (Change IFError private data into a pointer to a private data object)
Radar 2924002 (IFError should include an error domain)
Radar 2924013 (IFError initialization is not threadsafe)
Radar 2924280 (IFError should contain a new field which tells whether the error is terminal)

  • CacheLoader.subproj/IFFileURLProtocolHandler.m: (-[IFFileURLProtocolHandler fileLoadThread])
  • CacheLoader.subproj/IFHTTPURLProtocolHandler.m: (-[IFHTTPURLProtocolHandler continueBeginLoadInBackgroundAfterCreatingHTTPRequest]) (-[IFHTTPURLProtocolHandler retryWithRedirectedURL:]) (-[IFHTTPURLProtocolHandler handleReadStreamEvent:event:]) (-[IFHTTPURLProtocolHandler performHTTPHeaderRead:]) (-[IFHTTPURLProtocolHandler determineErrorAndFail])
  • CacheLoader.subproj/IFURLCacheLoaderConstants.:h
  • CacheLoader.subproj/IFURLHandle.m: (-[IFURLHandle _backgroundLoadFailedWithResultCode:inDomain:isTerminal:]) (-[IFURLHandle _setError:]) (-[IFURLHandle _notifyClientsDidFailLoading])
  • CacheLoader.subproj/IFURLHandleC.h:
  • CacheLoader.subproj/IFURLHandleC.m: (IFURLHandleBackgroundLoadFailedWithResultCode)
  • CacheLoader.subproj/IFURLHandlePrivate.h:
  • CacheLoader.subproj/IFURLLoad.h:
  • CacheLoader.subproj/IFURLLoad.m: (-[IFURLLoad failedWithResultCode:inDomain:isTerminal:]) (-[IFURLLoad scheduleOriginLoad]) (-[IFURLLoad beginOriginLoad]) (_loadSweeper)
  • Misc.subproj/IFError.h:
  • Misc.subproj/IFError.m: (-[IFErrorPrivate dealloc]) (classInitialize) (+[IFError errorWithCode:inDomain:failingURL:isTerminal:]) (-[IFError initWithErrorCode:inDomain:failingURL:isTerminal:]) (-[IFError dealloc]) (-[IFError errorCode]) (-[IFError errorDomain]) (-[IFError terminalError]) (-[IFError errorDescription]) (-[IFError failingURL]) (-[IFError description])

WebKit:

This code was modified to use the new interface and features of IFError.
These features and changes are described in these four bug reports:

Radar 2923998 (Change IFError private data into a pointer to a private data object)
Radar 2924002 (IFError should include an error domain)
Radar 2924013 (IFError initialization is not threadsafe)
Radar 2924280 (IFError should contain a new field which tells whether the error is terminal)

  • Plugins.subproj/IFPluginView.mm: (-[IFPluginView IFURLHandle:resourceDidFailLoadingWithResult:])
  • WebView.subproj/IFBaseWebControllerPrivate.mm: (-[IFBaseWebController _receivedProgress:forResource:fromDataSource:]) (-[IFBaseWebController _mainReceivedProgress:forResource:fromDataSource:])
  • WebView.subproj/IFMainURLHandleClient.mm: (-[IFMainURLHandleClient IFURLHandle:resourceDataDidBecomeAvailable:])
1:52 PM Changeset in webkit [1128]
  • 1 copy
    2 deletes in tags/JavaScriptCore-4

This commit was manufactured by cvs2svn to create tag
'JavaScriptCore-4'.

1:52 PM Changeset in webkit [1127] by mjs
  • 5 edits in trunk/JavaScriptCore

JavaScriptCore-4

9:41 AM Changeset in webkit [1126] by mjs
  • 9 edits in trunk/JavaScriptCore

Reviewed by: Ken Kocienda and Darin Adler

Fixed the following bug:

Radar 2890573 - JavaScriptCore needs to be thread-safe

Actually this is only a weak form of thread-safety - you can safely
use different interpreters from different threads at the same
time. If you try to use a single interpreter object from multiple
threads, you need to provide your own locking.

  • kjs/collector.h, kjs/collector.cpp: (Collector::lock, Collector::unlock): Trivial implementation of a recursive mutex. (Collector::allocate): Lock around the body of this function. (Collector::collect): Likewise. (Collector::finalCheck): Likewise. (Collector::numInterpreters): Likewise. (Collector::numGCNotAllowedObjects): Likewise. (Collector::numReferencedObjects): Likewise.
  • kjs/internal.cpp: (Parser::parse): use a mutex to lock around the whole parse, since it uses a bunch of global state. (InterpreterImp::InterpreterImp): Grab the Collector lock here, both the mutually exclude calls to the body of this function, and to protect the s_hook static member which the collector pokes at. (InterpreterImp::clear): Likewise.
  • kjs/ustring.cpp: (statBufferKeyCleanup, statBufferKeyInit, UString::ascii): Convert use of static variable
  • kjs/value.cpp: (ValueImp::ValueImp, ValueImp::mark, ValueImp::marked, ValueImp::setGcAllowed): Grab the GC lock around any flag changes.
Note: See TracTimeline for information about the timeline view.