Timeline



Oct 11, 2002:

11:10 PM Changeset in webkit [2311] by rjw
  • 5 edits in trunk/WebCore

Avoid one-click crasher.

  • Debug/SnippetController.m: (-[SnippetController load]):

Remove debugging.

  • kwq/WebCoreDOMDocument.mm: (+[WebCoreDOMDocument documentWithImpl:DOM::]):
  • kwq/WebCoreDOMNode.mm: (-[WebCoreDOMNode lastChild]):
10:49 PM Changeset in webkit [2310] by rjw
  • 18 edits in trunk

More implementation of snippet viewer to show converted
attributed string.

  • Debug/Snippet.nib:
  • Debug/SnippetController.h:
  • Debug/SnippetController.m: (-[SnippetController dealloc]): (-[SnippetController awakeFromNib]): (-[SnippetController load]): (lastNode): (-[SnippetController loadComplete]): (-[SnippetController convert:]): (-[SnippetController show:]): (-[SnippetController mainDataSource]): (-[SnippetLocationChangeDelegate initWithController:]): (-[SnippetLocationChangeDelegate locationChangeDone:forDataSource:]): (-[AttributedStringView dealloc]): (-[AttributedStringView setAttributedString:]): (-[AttributedStringView drawRect:]):

More DOM/attributed string work.

  • WebView.subproj/WebHTMLRepresentation.h:
  • WebView.subproj/WebHTMLRepresentation.m: (-[WebHTMLRepresentation attributedStringFrom:startOffset:to:endOffset:]):
  • WebView.subproj/WebHTMLRepresentationPrivate.h:

More DOM/attributed string work. Still need to fix more
inappropriate casting problems.

  • khtml/dom/dom_node.cpp: (Node::lastChild):
  • khtml/xml/dom_nodeimpl.cpp: (NodeImpl::lastChild): (NodeBaseImpl::lastChild):
  • khtml/xml/dom_nodeimpl.h:
  • kwq/KWQKHTMLPartImpl.cpp: (KWQKHTMLPartImpl::selectionStartOffset): (KWQKHTMLPartImpl::selectionEndOffset): (KWQKHTMLPartImpl::selectionStart): (KWQKHTMLPartImpl::selectionEnd):
  • kwq/KWQKHTMLPartImpl.h:
  • kwq/WebCoreBridge.h:
  • kwq/WebCoreBridge.mm: (-[WebCoreBridge DOMDocument]): (-[WebCoreBridge setSelectionFrom:startOffset:to:endOffset:]): (attributedString): (-[WebCoreBridge selectedAttributedString]): (-[WebCoreBridge attributedStringFrom:startOffset:to:endOffset:]):
  • kwq/WebCoreDOMDocument.mm: (-[WebCoreDOMDocumentType DOM::]): (-[WebCoreDOMDocumentType name]): (-[WebCoreDOMDocumentType entities]): (-[WebCoreDOMDocumentType notations]): (-[WebCoreDOMDocumentType publicId]): (-[WebCoreDOMDocumentType systemId]): (-[WebCoreDOMDocumentType internalSubset]): (-[WebCoreDOMImplementation DOM::]): (-[WebCoreDOMImplementation hasFeature::]): (-[WebCoreDOMImplementation createDocument:::]): (+[WebCoreDOMDocument documentWithImpl:DOM::]): (-[WebCoreDOMDocument DOM::]): (-[WebCoreDOMDocument doctype]): (-[WebCoreDOMDocument implementation]): (-[WebCoreDOMDocument documentElement]): (-[WebCoreDOMDocument createElement:]): (-[WebCoreDOMDocument createElementNS::]): (-[WebCoreDOMDocument createDocumentFragment]): (-[WebCoreDOMDocument createTextNode:]): (-[WebCoreDOMDocument createComment:]): (-[WebCoreDOMDocument createCDATASection:]): (-[WebCoreDOMDocument createProcessingInstruction::]): (-[WebCoreDOMDocument createAttribute:]): (-[WebCoreDOMDocument createAttributeNS::]): (-[WebCoreDOMDocument createEntityReference:]): (-[WebCoreDOMDocument getElementById:]): (-[WebCoreDOMDocument getElementsByTagName:]): (-[WebCoreDOMDocument getElementsByTagNameNS::]): (-[WebCoreDOMDocument importNode::]):
  • kwq/WebCoreDOMNode.mm: (-[WebCoreDOMNode initWithImpl:DOM::]): (-[WebCoreDOMNode firstChild]): (-[WebCoreDOMNode lastChild]):
  • kwq/WebCoreDOMPrivate.h:
  • kwq/WebCoreBridge.mm: (-[WebCoreBridge setSelectionFrom:startOffset:to:endOffset:]): (recursive_toHTML): (attributedString):
4:22 PM Changeset in webkit [2309] by kocienda
  • 3 edits in trunk/WebKit

Fixed uninitialized variable build breaker I got when
doing a Deployment build.

  • Bookmarks.subproj/WebBookmarkGroup.m: (-[WebBookmarkGroup insertNewBookmarkAtIndex:ofBookmark:withTitle:URLString:type:]):
2:56 PM Changeset in webkit [2308] by sullivan
  • 8 edits
    2 adds in trunk/WebKit

WebKit:

Added the concept of bookmark proxies; items that can be
stored and displayed with other bookmarks but represent
a source of bookmark-like items (e.g. Rendezvous, History)

  • Bookmarks.subproj/WebBookmarkProxy.h: Added.
  • Bookmarks.subproj/WebBookmarkProxy.m: Added. (-[WebBookmarkProxy initFromDictionaryRepresentation:withGroup:]): (-[WebBookmarkProxy dictionaryRepresentation]): (-[WebBookmarkProxy bookmarkType]): (-[WebBookmarkProxy copyWithZone:]): (-[WebBookmarkProxy title]): (-[WebBookmarkProxy setTitle:]): (-[WebBookmarkProxy icon]): New class, has a title and that's about it
  • Bookmarks.subproj/WebBookmark.h:
  • Bookmarks.subproj/WebBookmark.m: (+[WebBookmark bookmarkFromDictionaryRepresentation:withGroup:]): Handle proxy case
  • Bookmarks.subproj/WebBookmarkGroup.m: (-[WebBookmarkGroup insertNewBookmarkAtIndex:ofBookmark:withTitle:URLString:type:]): Handle proxy case
  • Bookmarks.subproj/WebBookmarkList.m: (-[WebBookmarkList initFromDictionaryRepresentation:withGroup:]), (-[WebBookmarkList dictionaryRepresentation]): Handle proxy case
  • Bookmarks.subproj/WebBookmarkPrivate.h: Add #define for proxy
  • WebKit.pbproj/project.pbxproj: updated for new files

WebBrowser:

  • started work on moving Address Book, Rendezvous, and History out of their own windows and into the Library view.

The titles Rendezvous/Address Book/History now appear in the
Library view, but they don't do anything. They have no content,
you can't drag them, and if you try to drop something on one
you get a mysterious console message but nothing else happens.

  • BookmarksController.m: (+[BookmarksController _favoritesTitle]), (+[BookmarksController _menuRootTitle]): just moved in file (+[BookmarksController historyProxyTitle]), (+[BookmarksController addressBookProxyTitle]), (+[BookmarksController rendezvousProxyTitle]): new methods to retrieve localizable titles for these bookmark proxies. (-[BookmarksController imageForBookmark:]): supply the right images for the proxies we know about (-[BookmarksController addMenuItemForBookmark:toMenu:]): handle proxy case (but there isn't yet a way to get one in a menu) (-[BookmarksController _blessOrCreateSpecialFolders]): make sure the right set of proxies are in there where they belong.
  • BookmarksViewController.m: (-[BookmarksViewController bookmarkForSourceRow:]): (-[BookmarksViewController sourceRowForBookmark:]): (-[BookmarksViewController numberOfRowsInTableView:]): (-[BookmarksViewController canRemoveBookmarkSource:]): (-[BookmarksViewController tableView:shouldEditTableColumn:row:]):
  • English.lproj/Localizable.strings:
  • English.lproj/StringsNotToBeLocalized.txt:
2:02 PM Changeset in webkit [2307] by cblu
  • 3 edits in trunk/WebKit

Thought I has checking for nil enough, but not enough as I raised an exception on Avie's machine.

  • Plugins.subproj/WebPlugin.m: (-[WebNetscapePlugin getPluginInfo]): check for the nil extension case
1:33 PM Changeset in webkit [2306] by darin
  • 3 edits in trunk/WebKit

Apply a simplified technique I learned while working on the Favorites button
class in the browser code.

  • Plugins.subproj/WebBaseNetscapePluginView.m: (-[WebBaseNetscapePluginView start]): Use the NSViewFocusDidChangeNotification to track the plugin rectangles instead of the NSViewFrameDidChangeNotification and NSViewBoundsDidChangeNotification on all the superviews.
9:34 AM Changeset in webkit [2305] by sullivan
  • 3 edits in trunk/WebKit

WebKit:

  • Resources/url_icon.tiff: new generic URL icon -- no more @!

WebBrowser:

  • some new and improved images from Steve Lemay (more to come)
  • Resources/Images/FavoritesBar.tif: new little heart
  • Resources/Images/folder16.tiff: new little folder
  • Resources/Images/rendezvous.tiff: new rendezvous symbol
  • Resources/Images/tiny_menu.tiff: new little menu

Oct 10, 2002:

9:07 PM Changeset in webkit [2304] by darin
  • 4 edits in trunk/JavaScriptCore
  • fixed 3072643 -- infinite loop in JavaScript code at walgreens.com

The problem is that "xxx".indexOf("", 1) needs to return 1, but we
were returning 0.

  • kjs/ustring.cpp: (UString::find): Return pos, not 0, when the search string is empty. (UString::rfind): Make sure that pos is not past the end of the string, taking into account the search string; fixes a potential read off the end of the buffer. Also return pos, not 0, when the search string is empty.
3:29 PM Changeset in webkit [2303] by darin
  • 4 edits in trunk/WebKit
  • fixed 3069366 -- REGRESSION: no pop-up window at inkfinder.com

The window now pops up, but it doesn't seem to work right. But I
think the window working right is a separate issue.

  • WebView.subproj/WebMainResourceClient.m: (-[WebMainResourceClient handle:willSendRequest:]): Make sure we use the copy of the request that we're keeping around when we call _setRequest on the data source, rather than the copy we're returning which can be modified by WebFoundation. Also rearrange things so we're more likely to get things right when the delegate changes the URL on the request.
3:07 PM Changeset in webkit [2302] by hyatt
  • 4 edits in trunk/WebCore

Fix for 3058829, assertion caused by table cell with
incorrect display type. Implemented a quirk that forces
<td>s of display: block to construct table cells as
rendering objects.

  • khtml/rendering/render_object.cpp: (RenderObject::createObject):
2:13 PM Changeset in webkit [2301] by cblu
  • 3 edits in trunk/WebKit

top level:

Fix typos.

  • Site/Internal/How-To/pc-os-installation.html:
  • Site/Internal/index.html:

WebKit:

No need to send update event when activating/deactivating. This was as old workaround for the plug-in drawing problems.

  • Plugins.subproj/WebBaseNetscapePluginView.m: (-[WebBaseNetscapePluginView windowBecameKey:]): (-[WebBaseNetscapePluginView windowResignedKey:]):
11:39 AM Changeset in webkit [2300]
  • 3 copies in tags/Alexander-27

This commit was manufactured by cvs2svn to create tag 'Alexander-27'.

11:39 AM Changeset in webkit [2299] by sheridan
  • 8 edits in trunk

Alex-27 stamp

Oct 9, 2002:

11:30 PM Changeset in webkit [2298] by darin
  • 5 edits in trunk/WebCore
  • fixed 3047782 -- Alexander rejects some color strings that other browsers accept
  • khtml/misc/helper.cpp: (khtml::setNamedColor): Put some of the code from this level that tries to accomodate bad colors in #if !APPLE_CHANGES, since we do most of the smarts in KWQ.
  • kwq/KWQColor.mm: (hex2int): Tolerate non-hex digits, treating them as 0. (decodeColorFromHexColorString): Trim any number of leading # characters, and trailing " and ' characters. Handle strings of 4, 5, 7, 8, 10, and 11 hex digits, along with the existing 3, 6, 9, and 12.
10:43 PM Changeset in webkit [2297] by darin
  • 6 edits in trunk/WebKit
  • fixed 3071799 -- REGRESSION: hang and strange download loading about:blank

Chris fixed the strange download earlier. This fixes the "hang' by making sure
we commit even if we receive 0 bytes of data.

  • WebView.subproj/WebDataSourcePrivate.h: Added a _finishedLoading method.
  • WebView.subproj/WebDataSourcePrivate.m: (-[WebDataSource _finishedLoading]): Added. Sets the "first byte of data received" flag, and calls _commitIfReady.
  • WebView.subproj/WebMainResourceClient.m: (-[WebMainResourceClient handleDidFinishLoading:]): Call _finishedLoading.
10:33 PM Changeset in webkit [2296] by darin
  • 4 edits in trunk/WebKit
  • fixed 3072015 -- REGRESSION: frames multiply endlessly
  • WebCoreSupport.subproj/WebBridge.m: (-[WebBridge setFrame:]): Remove code that sets the parent from here, because it's too early, always nil.
  • WebView.subproj/WebFramePrivate.m: (-[WebFrame _addChild:]): Do it here instead.
4:35 PM Changeset in webkit [2295] by hyatt
  • 4 edits in trunk/WebCore

Fix a subtle bug with layers. When a parent is sorted with its
children the parent's zindex must be treated as 0, so that
negative children draw behind the layer's content and positive
children (or auto children) draw in front of the layer's content.

This fix makes chrysler.com work again (and doubtless many other
messed up DHTML sites).

  • khtml/rendering/render_layer.cpp: (RenderLayer::constructZTree): (RenderLayer::RenderZTreeNode::constructLayerList):
2:43 PM Changeset in webkit [2294] by rjw
  • 4 edits in trunk/WebCore

Implemented string conversion functions.

  • kwq/WebCoreDOMDocument.mm: (domStringToNSString): (NSStringToDOMString):
2:11 PM Changeset in webkit [2293] by rjw
  • 10 edits in trunk/WebKit

Cleaned up and made a little more useful as an example for
WebKit root.

  • SimpleViewer/ApplicationController.h:
  • SimpleViewer/ApplicationController.m: (-[ApplicationController validateUserInterfaceItem:]):
  • SimpleViewer/DocumentController.h:
  • SimpleViewer/DocumentController.m: (-[DocumentController dealloc]): (-[DocumentController loadURL:]): (-[DocumentController windowWillClose:]): (-[LocationChangeDelegate dealloc]): (-[LocationChangeDelegate locationChangeStartedForDataSource:]): (-[LocationChangeDelegate locationChangeDone:forDataSource:]): (-[ResourceLoadDelegate resourceRequest:willSendRequest:fromDataSource:]): (-[ResourceLoadDelegate resourceRequest:didFinishLoadingFromDataSource:]): (-[ResourceLoadDelegate resourceRequest:didFailLoadingWithError:fromDataSource:]):
  • SimpleViewer/English.lproj/Document.nib:
  • SimpleViewer/English.lproj/MainMenu.nib:
  • SimpleViewer/English.lproj/Thumbnail.nib: Removed.
  • SimpleViewer/SimpleViewer.pbproj/project.pbxproj:
  • SimpleViewer/ThumbnailController.h: Removed.
  • SimpleViewer/ThumbnailController.m: Removed.
  • SimpleViewer/ThumbnailView.h: Removed.
  • SimpleViewer/ThumbnailView.m: Removed.

Guarantee that resource progress messages arrive
before final locationChangeDone message.

  • WebCoreSupport.subproj/WebSubresourceClient.m: (-[WebSubresourceClient handleDidFinishLoading:]):
  • WebKit.exp:
  • WebView.subproj/WebController.m: (-[WebResourceLoadDelegate resourceRequest:willSendRequest:fromDataSource:]): (-[WebResourceLoadDelegate resourceRequest:didReceiveResponse:fromDataSource:]): (-[WebResourceLoadDelegate resourceRequest:didReceiveContentLength:fromDataSource:]): (-[WebResourceLoadDelegate resourceRequest:didFinishLoadingFromDataSource:]): (-[WebResourceLoadDelegate resourceRequest:didFailLoadingWithError:fromDataSource:]):
  • WebView.subproj/WebMainResourceClient.m: (-[WebMainResourceClient handleDidFinishLoading:]):
  • WebView.subproj/WebResourceLoadDelegate.h:
1:41 PM Changeset in webkit [2292] by sullivan
  • 7 edits in trunk/WebKit

WebKit:

  • removed unnecessary concept of unique identifiers for bookmarks
  • Bookmarks.subproj/WebBookmark.h:
  • Bookmarks.subproj/WebBookmark.m: (-[WebBookmark dealloc]): (-[WebBookmark _setGroup:]):
  • Bookmarks.subproj/WebBookmarkGroup.h:
  • Bookmarks.subproj/WebBookmarkGroup.m:
  • Bookmarks.subproj/WebBookmarkGroupPrivate.h: removed all references to unique identifiers

WebBrowser:

  • greatly simplified drag-and-drop bookmark code, which will help me make further refinements more easily
  • removed uses of unique bookmark identifiers
  • tweaked Library column behaviors with IB
  • BookmarksViewController.h: removed _draggedBookmarks ivar; this is now a static variable
  • BookmarksViewController.m: (-[BookmarksViewController dealloc]): don't release _draggedBookmarks, which is now static (-[BookmarksViewController bookmarkOrAnyAncestor:inArray:]): new method, slight addition to already-existing anyAncestorOfBookmark:inArray:; replaces code that was checking bookmark identifiers against a list of identifiers (-[BookmarksViewController tableView:validateDrop:proposedRow:proposedDropOperation:]), (-[BookmarksViewController tableView:acceptDrop:row:dropOperation:]), (-[BookmarksViewController outlineView:validateDrop:proposedItem:proposedChildIndex:]), (-[BookmarksViewController outlineView:acceptDrop:item:childIndex:]): Always use draggedImage:endedAt: for deleting original bookmarks; compare against draggedBookmarks instead of using bookmark identifiers; other simplifications.
  • BrowserWebBookmarkExtras.h:
  • BrowserWebBookmarkExtras.m: (+[WebBookmark bookmarkPasteboardTypes]): (+[WebBookmark writeBookmarks:toPasteboard:withOwner:]): (+[WebBookmark bookmarksFromPasteboard:]): Removed bookmarkIdentifiersFromPasteboard and supporting code
  • English.lproj/Browser.nib: made single-column not reorderable so it doesn't highlight
  • FavoriteButton.m: (-[FavoriteButton bookmarkMatches:]): new method, compares a bookmark against self's (-[FavoriteButton determineDragOperation:]): use bookmarkMatches instead of unique identifiers to test for dropping an item onto itself.
11:45 AM Changeset in webkit [2291] by darin
  • 33 edits in trunk

WebCore:

  • fixed 3069264 -- REGRESSION: windows created for links with target=blank start out hidden (window menu only)
  • kwq/WebCoreBridge.h: Removed openNewWindowWithURL:referrer:frameName: and added createWindowWithURL:referrer:frameName: and showWindow.
  • kwq/KWQKHTMLPartBrowserExtension.mm: (KHTMLPartBrowserExtension::createNewWindow): Call createWindowWithURL, and then showWindow after the window is set up. Also change the code that flips coordinates to always use the height of the first screen instead of using the height of the screen the window is on, which sounds right, but is wrong.
  • kwq/KWQKHTMLPartImpl.mm: (KWQKHTMLPartImpl::bridgeForFrameName): Call createWindowWithURL and then showWindow in the case where we create a window. (KWQKHTMLPartImpl::urlSelected): Remove unused command-click code. The real command-click code is in the browser now.

WebKit:

WebKit support for creating windows and then showing them later
after setting them up.

  • WebCoreSupport.subproj/WebBridge.m: (-[WebBridge createWindowWithURL:referrer:frameName:]): Replaced the old openNewWindowWithURL with this. It calls the new window operations delegate method. (-[WebBridge showWindow]): Added. Calls the window operations delegate showWindow method. (-[WebBridge createChildFrameNamed:withURL:referrer:renderPart:allowsScrolling:marginWidth:marginHeight:]): Call _createFrameNamed instead of createFrameNamed.
  • WebView.subproj/WebWindowOperationsDelegate.h: Replaced the openNewWindowWithURL method with a new method named createWindowWithURL. Added showWindow and showWindowBehindFrontmost.
  • WebView.subproj/WebControllerPrivate.h: Renamed createFrameNamed to _createFrameNamed and removed the data source parameter. Added _openNewWindowWithURL:referrer:behind: for the convenience of those who used to call the window operations delegate directly to open the window.
  • WebView.subproj/WebControllerPrivate.m: (-[WebController _createFrameNamed:inParent:allowsScrolling:]): Renamed, and removed the data source parameter. (-[WebController _openNewWindowWithURL:referrer:behind:]): Added.
  • Plugins.subproj/WebBaseNetscapePluginView.m: (-[WebBaseNetscapePluginView loadRequest:inTarget:withNotifyData:]):
  • WebView.subproj/WebDefaultContextMenuDelegate.m: (-[WebDefaultContextMenuDelegate openNewWindowWithURL:referrer:]):
  • WebView.subproj/WebFrame.m: (-[WebFrame frameNamed:]):
  • WebView.subproj/WebHTMLViewPrivate.m: (-[WebHTMLView _continueAfterClickPolicyForEvent:]): Use a private WebController method instead of calling the delegate directly, because it now takes two method calls to create and display a new window.
  • Misc.subproj/WebNSViewExtras.m:
  • WebCoreSupport.subproj/WebSubresourceClient.m:
  • WebView.subproj/WebController.m:
  • WebView.subproj/WebDataSource.m:
  • WebView.subproj/WebFramePrivate.m:
  • WebView.subproj/WebHTMLView.m:
  • WebView.subproj/WebMainResourceClient.m:
  • WebView.subproj/WebPreferences.m:
  • WebView.subproj/WebView.m:
  • WebView.subproj/WebViewPrivate.m: Tweaked comments.

WebBrowser:

WebBrowser support for creating windows and then showing them later
after setting them up.

  • BrowserDocumentController.h: Add a new policy, CreateHiddenWindow.
  • BrowserDocumentController.m: (-[BrowserDocumentController _goToEachURL:referrer:windowPolicy:]): Pass NO for display if policy is CreateHiddenWindow. (-[BrowserDocumentController tryMultipleURLs:windowPolicy:]): Ditto.
  • BrowserWebController.m: (-[BrowserWebController createWindowWithURL:referrer:]): Added. Like the old openNewWindowWithURL method, but uses CreateHiddenWindow. (-[BrowserWebController showWindow]): Added. Tells the window controller to show the window. (-[BrowserWebController showWindowBehindFrontmost]): Added. Tells the window controllers to show the window after telling the document that the window should open behind the frontmost.
9:48 AM Changeset in webkit [2290] by darin
  • 4 edits in trunk/WebCore
  • fixed 3069749 -- crash in QString during third run of cvs-base
  • kwq/KWQString.mm: (checkNodeAllocationPages): Added function to use for debugging. (_allocateNode): Clear the next pointer after removing a page from the free node list so that the free node list doesn't point at part of the used node list. (freeHandle): Change the code around so that the code to add the node to the free list works even in the case where this was the top from the used list. The old code would half-remove the node from the used list and not add it to the free list at all.
8:09 AM Changeset in webkit [2289] by darin
  • 3 edits in trunk/WebKit
  • WebCoreSupport.subproj/WebImageRenderer.m: (-[WebImageRenderer drawClippedToValidInRect:fromRect:]): Fix positioning of progressively loading images that are flipped.

Oct 8, 2002:

10:22 PM Changeset in webkit [2288] by darin
  • 7 edits in trunk/WebKit
  • fixed 3069764 -- REGRESSION: Plug-ins sometimes don't respond to update events, causes disappearing
  • Plugins.subproj/WebBaseNetscapePluginView.m: (-[WebBaseNetscapePluginView drawRect:]): Set the visible region of the port to the port bounds to work around the fact that NSWindow tries to help us by doing a BeginUpdate call. This ensures we can draw where we think we are dirty, not just where Carbon thinks we are dirty.
  • Plugins.subproj/WebNetscapePluginDocumentView.m: Tweak includes.
  • Plugins.subproj/WebNetscapePluginEmbeddedView.m: Tweak includes.
  • WebCoreSupport.subproj/WebBridge.m: (-[WebBridge openNewWindowWithURL:referrer:frameName:]): Tweak.
  • English.lproj/StringsNotToBeLocalized.txt: Update for recent changes.
10:16 PM Changeset in webkit [2287] by darin
  • 7 edits in trunk/WebCore
  • WebCore.pbproj/project.pbxproj: Project Builder wanted to set encodings for new files. Maybe Richard is not using the new Project Builder on all his machines?
  • kwq/KWQString.mm: (_allocateNode): Fix typo in comment.
  • kwq/KWQKHTMLPartImpl.mm: (KWQKHTMLPartImpl::bridgeForFrameName): Tweak.
8:04 PM Changeset in webkit [2286] by darin
  • 17 edits in trunk/WebKit

WebKit:

Make WebFrame do the entire frame hierarchy, instead of having the
parent and child pointers in the data source.

  • WebCoreSupport.subproj/WebBridge.m: (-[WebBridge childFrames]): Get children from the frame, not the data source. (-[WebBridge setFrame:]): Do the setParent: call on the bridge here, instead of in dataSourceChanged, since the parent relationship is now established even without having the data source. (-[WebBridge dataSourceChanged]): Remove the setParent: call. (-[WebBridge loadRequest:]): Remove the parent parameter. It's already set up at this point so we don't need to set it. (-[WebBridge loadURL:referrer:]): Don't pass a parent. (-[WebBridge postWithURL:referrer:data:contentType:]): Don't pass a parent. (-[WebBridge createChildFrameNamed:withURL:referrer:renderPart:allowsScrolling:marginWidth:marginHeight:]): Don't pass a parent. (-[WebBridge addBackForwardItemWithURL:anchor:]): Get the parent frame by just calling the parent method instead of the more roundabout way that it was doing it before.
  • WebView.subproj/WebController.m: (-[WebController _frameForDataSource:fromFrame:]): Get the children list from the frame, no need to ask the data source. And no need to deal with the provisional data source, since those can't have children any more. (-[WebController _frameForView:fromFrame:]): Ditto.
  • WebView.subproj/WebControllerPrivate.h: Change parent parameter when creating a new frame to be a frame, not a data source.
  • WebView.subproj/WebControllerPrivate.m: (-[WebControllerPrivate _clearControllerReferences:]): Get the children list from the frame. (-[WebControllerPrivate dealloc]): Rename the _reset method _controllerWillBeDeallocated to be more concrete. More simplification can happen here later. (-[WebController createFrameNamed:for:inParent:allowsScrolling:]): Call _addChild on the parent frame rather than calling addFrame on the parent data source.
  • WebView.subproj/WebDataSource.h: Remove the parent, children, frameNamed, frameNames, and frameExists methods.
  • WebView.subproj/WebDataSource.m: (-[WebDataSource controller]): Remove the assertion here about parents, since we don't have a parent pointer any more. (-[WebDataSource isLoading]): Get the list of children from the frame.
  • WebView.subproj/WebDataSourcePrivate.h: Remove the parent pointer and the frames dictionary, also remove the _setParent: and addFrame: methods.
  • WebView.subproj/WebDataSourcePrivate.m: (-[WebDataSourcePrivate dealloc]): Don't release the frames list. (-[WebDataSource _recursiveStopLoading]): Get the frames list from the frame. (-[WebDataSource _layoutChildren]): Ditto. (-[WebDataSource _defersCallbacksChanged]): Ditto.
  • WebView.subproj/WebFrame.h: Add parent and children methods.
  • WebView.subproj/WebFrame.m: (-[WebFrame dealloc]): Call _detachFromParent. (-[WebFrame setProvisionalDataSource:]): Set the encoding of the data source to match the encoding of the parent's data source. This used to be done in [WebDataSource _setParent:]. Further simplification can probably be done here. (-[WebFrame reload]): Remove the call to [WebDataSource _setParent:]. (+[WebFrame _frameNamed:fromFrame:]): Get the children from the frame. (-[WebFrame frameNamed:]): Get the parent from the frame. (-[WebFrame parent]): Added. (-[WebFrame children]): Added.
  • WebView.subproj/WebFramePrivate.h: Added parent and children fields, changed reset to _controllerWillBeDeallocated, changed _parentDataSourceWillBeDeallocated to _detachFromParent, added _addChild method. Further simplification can probably be done here.
  • WebView.subproj/WebFramePrivate.m: (-[WebFramePrivate dealloc]): Release the children array. (-[WebFrame _controllerWillBeDeallocated]): Renamed from reset. Now just calls _detachFromParent. (-[WebFrame _detachFromParent]): Does all the work that reset and _parentDataSourceWillBeDeallocated used to do. (-[WebFrame _setDataSource:]): Call _detachFromParent on all the children and release them before setting up the new data source. (-[WebFrame _transitionToCommitted]): Get the parent from self instead of the data source. (-[WebFrame _isLoadComplete]): Ditto. (+[WebFrame _recursiveCheckCompleteFromFrame:]): Get the children from self instead of the data source. (-[WebFrame _textSizeMultiplierChanged]): Ditto. (-[WebFrame _reloadAllowingStaleDataWithOverrideEncoding:]): Remove the call to [WebDataSource _setParent:]. (-[WebFrame _addChild:]): Added. Puts the child in a children list, and also sets the override encoding of the child based on our data source's override encoding.

WebBrowser:

Update for the WebKit change that moved the children list to the frame
instead of the data source.

  • BrowserWebFrameExtras.h: Remove the parentFrame method, since the parent method on WebFrame now does the same thing.
  • BrowserWebFrameExtras.m: (-[WebFrame _topFrame]): Use parent.
  • BrowserWebViewExtras.m: (-[WebView largestScrollableWebView]): Call the children method on the frame now, not the data source.
  • LoadProgressMonitor.m: (-[LoadProgressMonitor _monitorProvisionalDataSourceForFrame:]): Get the parent directly from the frame now, no need to go through the data source. (-[LoadProgressMonitor titleChangedForFrame:]): Use the parent method, not parentFrame.
7:41 PM Changeset in webkit [2285] by sullivan
  • 3 edits in trunk/WebKit

WebKit:

--2002-10-08 John Sullivan <sullivan@apple.com>

  • WebKit.pbproj/project.pbxproj: Project Builder says I changed it only by setting "hasScannedForEncodings" to 1 -- version wars again?

WebBrowser:

  • fixed 3070645 -- Editable items in "Library" column should be drop targets
  • made "Library" column unstriped -- I stripified it earlier without realizing that it wasn't supposed to be stripulated.

You can now drop bookmarks from one top-level group into another, and they move
(unless you hold the option key down).

  • BookmarksViewController.m: (-[BookmarksViewController awakeFromNib]): register drag types for table view (-[BookmarksViewController menuFolderTitle]): new convenience method (-[BookmarksViewController complainAboutTryingToMoveFavorites]): tweaked wording (-[BookmarksViewController complainAboutTryingToMoveBookmarksMenu]): new method (-[BookmarksViewController tableView:validateDrop:proposedRow:proposedDropOperation:]): new method, decide what can be dropped and where (-[BookmarksViewController tableView:acceptDrop:row:dropOperation:]): new method, handle the drop; both of these methods are currently overly complicated (-[BookmarksViewController outlineView:acceptDrop:item:childIndex:]): handle trying to move menu root as well as favorites root
  • English.lproj/Localizable.strings: update localizations
4:54 PM Changeset in webkit [2284] by hyatt
  • 4 edits in trunk/WebCore

This was an unintentional checkin. backing out.

  • khtml/xml/dom_elementimpl.cpp: (NamedAttrMapImpl::removeNamedItem):
4:42 PM Changeset in webkit [2283] by rjw
  • 3 edits in trunk/WebKit

Removed unnecessary (and incorrect) include.
The *.m files in DOM.subproj might be removed,
they are empty now.

  • DOM.subproj/WebDOMDocument.m:
4:27 PM Changeset in webkit [2282] by rjw
  • 9 edits in trunk

i Added bridge method set the selection.

  • kwq/WebCoreBridge.h:
  • kwq/WebCoreBridge.mm: (-[WebCoreBridge setSelectionFrom:startOffset:to:endOffset:]):

Added selection API.

  • WebView.subproj/WebHTMLRepresentation.h:
  • WebView.subproj/WebHTMLRepresentation.m: (-[WebHTMLRepresentation setSelectionFrom:startOffset:to:endOffset:]):
4:07 PM Changeset in webkit [2281] by rjw
  • 11 edits in trunk

Add accessor for DOM document.

  • WebKit.pbproj/project.pbxproj:
  • WebView.subproj/WebHTMLRepresentation.h:
  • WebView.subproj/WebHTMLRepresentation.m: (-[WebHTMLRepresentation DOMDocument]):

Added bridge method to get the DOM document.

  • kwq/WebCoreBridge.h:
  • kwq/WebCoreBridge.mm: (-[WebCoreBridge DOMDocument]):
  • kwq/WebCoreDOM.h:
3:47 PM Changeset in webkit [2280] by rjw
  • 11 edits in trunk/WebCore

More DOM implementation.

  • khtml/dom/dom_text.h:
  • khtml/dom/dom_xml.h:
  • khtml/xml/dom_textimpl.h:
  • khtml/xml/dom_xmlimpl.h:
  • kwq/WebCoreDOM.h:
  • kwq/WebCoreDOMNode.mm: (DOM::CharacterDataImpl::createInstance): (DOM::TextImpl::createInstance): (DOM::ProcessingInstructionImpl::createInstance): (-[WebCoreDOMCharacterData data]): (-[WebCoreDOMCharacterData setData:]): (-[WebCoreDOMCharacterData length]): (-[WebCoreDOMCharacterData substringData::]): (-[WebCoreDOMCharacterData appendData:]): (-[WebCoreDOMCharacterData insertData::]): (-[WebCoreDOMCharacterData deleteData::]): (-[WebCoreDOMText splitText:]): (+[WebCoreDOMCDATASection CDATASectionWithImpl:DOM::]): (-[WebCoreDOMProcessingInstruction data]): (-[WebCoreDOMProcessingInstruction setData:]):
  • kwq/WebCoreDOMPrivate.h:
  • kwq/WebDOMElement.h:
3:07 PM Changeset in webkit [2279] by rjw
  • 15 edits in trunk

Made getAttributeNodeNamed match spec, changed
to getAttributeNode.

  • DOM.subproj/WebDOMElement.h:

Implemented WebCoreDOMElement.
Fixed extra deref of impl in subclasses
of WebCoreDOMNode.

  • khtml/dom/dom_element.h:
  • khtml/dom/dom_node.h:
  • khtml/xml/dom_elementimpl.h:
  • khtml/xml/dom_nodeimpl.h:
  • kwq/WebCoreDOMDocument.mm: (-[WebCoreDOMDocument initWithImpl:DOM::]):
  • kwq/WebCoreDOMNode.mm: (DOM::NodeListImpl::createInstance): (DOM::NamedNodeMapImpl::createInstance): (DOM::AttrImpl::createInstance): (DOM::ElementImpl::createInstance): (-[WebCoreDOMNodeList length]): (-[WebCoreDOMNodeList item:]): (-[WebCoreDOMAttr initWithImpl:DOM::]): (+[WebCoreDOMDocumentFragment documentFragmentWithImpl:DOM::]): (-[WebCoreDOMElement tagName]): (-[WebCoreDOMElement setAttribute::]): (-[WebCoreDOMElement removeAttribute:]): (-[WebCoreDOMElement getAttributeNode:]): (-[WebCoreDOMElement removeAttributeNode:]): (-[WebCoreDOMElement getElementsByTagName:]): (-[WebCoreDOMElement getAttributeNS::]): (-[WebCoreDOMElement setAttributeNS:::]):
  • kwq/WebDOMDocument.h:
  • kwq/WebDOMElement.h:
2:40 PM Changeset in webkit [2278] by sullivan
  • 9 edits
    2 deletes in trunk/WebKit

WebKit:

  • WebKit part of fix for 3069150 -- eliminate "separator" feature from Bookmarks
  • Bookmarks.subproj/WebBookmarkSeparator.h: Removed.
  • Bookmarks.subproj/WebBookmarkSeparator.m: Removed. Removed class
  • Bookmarks.subproj/WebBookmark.h:
  • Bookmarks.subproj/WebBookmark.m: (+[WebBookmark bookmarkOfType:]): (+[WebBookmark bookmarkFromDictionaryRepresentation:withGroup:]):
  • Bookmarks.subproj/WebBookmarkGroup.m: (-[WebBookmarkGroup insertNewBookmarkAtIndex:ofBookmark:withTitle:URLString:type:]):
  • Bookmarks.subproj/WebBookmarkList.m: (-[WebBookmarkList initFromDictionaryRepresentation:withGroup:]):
  • Bookmarks.subproj/WebBookmarkPrivate.h:
  • English.lproj/StringsNotToBeLocalized.txt: Removed all references to class.
  • WebKit.pbproj/project.pbxproj: Updated for removed files.

WebBrowser:

  • WebBrowser part of fix for 3069150 -- eliminate "separator" feature from Bookmarks
  • fixed 3070014 -- Library view needs "New Folder" button
  • fixed 3050660 -- the 5 editing items in the Bookmarks menu before the bookmarks should be moved or made a submenu
  • fixed 3069152 -- eliminate the ability to create new empty bookmarks
  • OutlineViewPlus.h:
  • OutlineViewPlus.m: (-[OutlineViewPlus keyDown:]): Add delegate handling of keyDown events like that in TableViewPlus so I could remove the ugly hack of out-of-sight buttons handling Delete and Return as keyboard shortcuts.
  • BookmarksController.m: (-[BookmarksController imageForBookmark:]): Remove bookmark separator handling. (-[BookmarksController addMenuItemForBookmark:toMenu:]): Remove bookmark separator handling.
  • BookmarksViewController.h:
  • BookmarksViewController.m: (-[BookmarksViewController removeSelectedBookmarks]): removed sender parameter; no longer used as IBAction. (-[BookmarksViewController handleKeyDown:inSourceColumn:]): new bottleneck method for handling Return and Delete (and forward delete) keys pressed in either table view or outline view. (-[BookmarksViewController tableView:keyDown:]): now calls handleKeyDown:inSourceColumn: (-[BookmarksViewController outlineView:objectValueForTableColumn:byItem:]): Remove bookmark separator handling. (-[BookmarksViewController outlineView:shouldEditTableColumn:item:]): Remove bookmark separator handling. (-[BookmarksViewController outlineView:keyDown:]): new delegate method, calls handleKeyDown:inSourceColumn: (-[BookmarksViewController delete:]): No sender parameter for removeSelectedBookmarks anymore (-[BookmarksViewController validateUserInterfaceItem:]): Removed case for removeSelectedBookmarks since it's never auto-validated now
  • BrowserWebBookmarkExtras.m: (+[WebBookmark writeBookmarks:toPasteboard:withOwner:]): Remove bookmark separator handling.
  • English.lproj/Browser.nib: added New Folder button; removed ugly hack of out-of-sight buttons handling Delete and Return; put table view and outline view in boxes to handle New Folder button and future changes.
  • English.lproj/Localizable.strings: update localizations
  • English.lproj/MainMenu.nib: removed editing items from Bookmarks menu
  • FavoriteButton.m: (-[FavoriteButton setBookmark:]): Remove bookmark separator handling. (-[FavoriteButton menu]): Remove bookmark separator handling.
  • FavoritesBar.m: (-[FavoritesBar performDragOperation:]): Remove bookmark separator handling.
2:16 PM Changeset in webkit [2277] by rjw
  • 17 edits
    7 adds
    2 deletes in trunk

Fixes to the DOM API.

  • DOM.subproj/WebDOMDocument.h:
  • DOM.subproj/WebDOMDocument.m:
  • DOM.subproj/WebDOMNode.h:
  • DOM.subproj/WebDOMNode.m:
  • DOM.subproj/WebDOMNamedNodeMap.h: Removed.
  • DOM.subproj/WebDOMNamedNodeMap.m: Removed.
  • WebKit.pbproj/project.pbxproj:

First cut at ObjC stubs for DOM API. Finished the
main classes. Need to finish
WebDOMElement, WebDOMElement, WebDOMElement,
WebDOMCDATASection, WebDOMText, WebDOMComment,
WebDOMCharacterData and

  • WebCore.pbproj/project.pbxproj:
  • khtml/dom/dom_doc.h:
  • khtml/dom/dom_element.h:
  • khtml/dom/dom_node.h:
  • khtml/xml/dom_docimpl.h:
  • khtml/xml/dom_elementimpl.h:
  • khtml/xml/dom_nodeimpl.h:
  • kwq/WebCoreDOM.h: Added.
  • kwq/WebCoreDOMDocument.mm: Added. (DOM::DOMImplementationImpl::createInstance): (DOM::DocumentTypeImpl::createInstance): (DOM::DocumentImpl::createInstance): (domStringToNSString): (NSStringToDOMString): (+[WebCoreDOMDocumentType documentTypeWithImpl:DOM::]): (-[WebCoreDOMDocumentType initWithImpl:DOM::]): (-[WebCoreDOMDocumentType dealloc]): (-[WebCoreDOMDocumentType DOM::]): (-[WebCoreDOMDocumentType name]): (-[WebCoreDOMDocumentType entities]): (-[WebCoreDOMDocumentType notations]): (-[WebCoreDOMDocumentType publicId]): (-[WebCoreDOMDocumentType systemId]): (-[WebCoreDOMDocumentType internalSubset]): (+[WebCoreDOMImplementation implementionatWithImpl:DOM::]): (-[WebCoreDOMImplementation initWithImpl:DOM::]): (-[WebCoreDOMImplementation dealloc]): (-[WebCoreDOMImplementation DOM::]): (-[WebCoreDOMImplementation hasFeature::]): (-[WebCoreDOMImplementation createDocument:::]): (+[WebCoreDOMDocument documentWithImpl:DOM::]): (-[WebCoreDOMDocument initWithImpl:DOM::]): (-[WebCoreDOMDocument dealloc]): (-[WebCoreDOMDocument DOM::]): (-[WebCoreDOMDocument doctype]): (-[WebCoreDOMDocument implementation]): (-[WebCoreDOMDocument documentElement]): (-[WebCoreDOMDocument createElement:]): (-[WebCoreDOMDocument createElementNS::]): (-[WebCoreDOMDocument createDocumentFragment]): (-[WebCoreDOMDocument createTextNode:]): (-[WebCoreDOMDocument createComment:]): (-[WebCoreDOMDocument createCDATASection:]): (-[WebCoreDOMDocument createProcessingInstruction::]): (-[WebCoreDOMDocument createAttribute:]): (-[WebCoreDOMDocument createAttributeNS::]): (-[WebCoreDOMDocument createEntityReference:]): (-[WebCoreDOMDocument getElementById:]): (-[WebCoreDOMDocument getElementsByTagName:]): (-[WebCoreDOMDocument getElementsByTagNameNS::]): (-[WebCoreDOMDocument importNode::]):
  • kwq/WebCoreDOMNode.mm: Added. (DOM::NamedNodeMapImpl::createInstance): (DOM::AttrImpl::createInstance): (+[WebCoreDOMNode nodeWithImpl:DOM::]): (-[WebCoreDOMNode initWithImpl:DOM::]): (-[WebCoreDOMNode DOM::]): (-[WebCoreDOMNode dealloc]): (-[WebCoreDOMNode nodeName]): (-[WebCoreDOMNode nodeValue]): (-[WebCoreDOMNode setNodeValue:]): (-[WebCoreDOMNode nodeType]): (-[WebCoreDOMNode parentNode]): (-[WebCoreDOMNode firstChild]): (-[WebCoreDOMNode lastChild]): (-[WebCoreDOMNode previousSibling]): (-[WebCoreDOMNode nextSibling]): (-[WebCoreDOMNode ownerDocument]): (-[WebCoreDOMNode insert:before:]): (-[WebCoreDOMNode replace:child:]): (-[WebCoreDOMNode removeChild:]): (-[WebCoreDOMNode hasChildNodes]): (-[WebCoreDOMNode cloneNode:]): (-[WebCoreDOMNode normalize]): (-[WebCoreDOMNode isSupported::]): (-[WebCoreDOMNode namespaceURI]): (-[WebCoreDOMNode prefix]): (-[WebCoreDOMNode setPrefix:]): (-[WebCoreDOMNode localName]): (+[WebCoreDOMNodeList nodeListWithImpl:DOM::]): (-[WebCoreDOMNodeList initWithImpl:DOM::]): (-[WebCoreDOMNodeList DOM::]): (-[WebCoreDOMNodeList dealloc]): (+[WebCoreDOMNamedNodeMap namedNodeMapWithImpl:DOM::]): (-[WebCoreDOMNamedNodeMap initWithImpl:DOM::]): (-[WebCoreDOMNamedNodeMap DOM::]): (-[WebCoreDOMNamedNodeMap dealloc]): (-[WebCoreDOMNamedNodeMap length]): (-[WebCoreDOMNamedNodeMap getNamedItem:]): (-[WebCoreDOMNamedNodeMap setNamedItem:]): (+[WebCoreDOMAttr attrWithImpl:DOM::]): (-[WebCoreDOMAttr initWithImpl:DOM::]): (-[WebCoreDOMAttr DOM::]): (-[WebCoreDOMAttr dealloc]): (-[WebCoreDOMAttr name]): (-[WebCoreDOMAttr specified]): (-[WebCoreDOMAttr value]): (-[WebCoreDOMAttr ownerElement]): (+[WebCoreDOMCDATASection CDATASectionWithImpl:DOM::]): (-[WebCoreDOMCDATASection initWithImpl:DOM::]): (-[WebCoreDOMCDATASection DOM::]): (-[WebCoreDOMCDATASection dealloc]):
  • kwq/WebCoreDOMPrivate.h: Added.
  • kwq/WebDOMDocument.h: Added.
  • kwq/WebDOMElement.h: Added.
  • kwq/WebDOMNode.h: Added.
2:12 PM Changeset in webkit [2276] by kocienda
  • 3 edits in trunk/WebKit

WebFoundation:

Some changes to make some progress on this bug:

Radar 3015613 (Search results disappear when backtracking)

This set of changes does not fix this bug, but it does provide much of the WebFoundation
support we'll need for a complete fix. In order to finish the fix, we need to make
some API changes in WebKit.

  • CacheLoader.subproj/WebResourceLoad.m: (-[WebResourceLoad _cacheKey]): Add HTTP request method to cache key.
  • CacheLoader.subproj/WebResourceRequest.m: (-[WebResourceRequest initWithURL:]): Explicitly set defaults for requestCachePolicy and responseCachePolicy.
  • ProtocolHandlers.subproj/WebHTTPProtocolHandler.m: (-[WebHTTPProtocolHandler shouldCacheResponse:]): Do not unconditionally determine that HEAD, POST, PUT, and DELETE methods are uncacheable. This change is made so we can show cached results when a user uses back/forward or history to do navigation.

WebKit:

Use WebFrameLoadType variable to set the request cache policy for the WebResourceRequest.
This will help us to provide cached results for POST requests when the user navigates
using the back/forward list or history for navigation, while making sure we do not
use cached results when the user pokes the submit button for a form they have
submitted previously.

  • WebView.subproj/WebFramePrivate.m: (-[WebFrame _goToItem:withFrameLoadType:])
1:54 PM Changeset in webkit [2275] by cblu
  • 4 edits in trunk/WebKit

WebFoundation:

  • Sniff file resources for HTML if we can't determine a MIME type.
  • Assume resources without content types or extensions are HTML.
  • CacheLoader.subproj/WebResourceResponse.m: (-[WebResourceResponse contentType]): Cleaned up, make HTML assumption
  • Misc.subproj/WebNSStringExtras.h:
  • Misc.subproj/WebNSStringExtras.m: (-[NSString _web_isExtensionDefinite]): added, returns YES for common extensions that should be correct.
  • ProtocolHandlers.subproj/WebFileProtocolHandler.m: (-[WebFileProtocolHandler didLoadData:]): sniff if !_web_isExtensionDefinite

WebKit:

Moved assumption that a resource without a content type or extension is HTML to WebFoundation.

  • WebView.subproj/WebMainResourceClient.m: (-[WebMainResourceClient handle:didReceiveResponse:]):
12:52 PM Changeset in webkit [2274] by hyatt
  • 7 edits in trunk/WebCore

Fix a bug in my event handling code for layers. This makes
the links on ESPN.com work again (bug 3051636). Yay!

  • khtml/rendering/render_layer.cpp: (RenderLayer::constructZTree):
  • khtml/xml/dom_elementimpl.cpp: (NamedAttrMapImpl::removeNamedItem):
  • kwq/qt/qrect.h:
10:51 AM Changeset in webkit [2273] by cblu
  • 4 edits in trunk/WebKit

Minor plug-in code clean-up.

  • Plugins.subproj/WebBaseNetscapePluginView.m: (-[WebBaseNetscapePluginView sendActivateEvent:]): (-[WebBaseNetscapePluginView sendUpdateEvent]): (-[WebBaseNetscapePluginView loadRequest:inTarget:withNotifyData:]):
  • Plugins.subproj/WebPluginStream.m: (-[WebNetscapePluginStream receivedData:]):
8:08 AM Changeset in webkit [2272] by cblu
  • 4 edits in trunk/WebKit

Partial fix for 2967073 - should open all TEXT type files, at least

  • WebView.subproj/WebControllerPrivate.m: (+[WebController _MIMETypeForFile:]): Sniff for HTML in the fail case.

Oct 7, 2002:

5:00 PM Changeset in webkit [2271] by darin
  • 5 edits in trunk/WebCore
  • fixed 3037353 -- align="middle" elements not horizontally centered
  • khtml/html/html_blockimpl.cpp: (HTMLDivElementImpl::parseAttribute):
  • khtml/html/html_tableimpl.cpp: (HTMLTablePartElementImpl::parseAttribute): Handle "middle" same as center in these two places.
3:20 PM Changeset in webkit [2270] by darin
  • 9 edits in trunk

WebFoundation:

WebFoundation part of implementation of multipart forms posting.

  • ProtocolHandlers.subproj/WebSimpleHTTPProtocolHandler.m: (-[WebSimpleHTTPProtocolHandler _addRequestMessageBody:]):
  • ProtocolHandlers.subproj/WebCFNetworkHTTPProtocolHandler.m: (-[WebCFNetworkHTTPProtocolHandler addRequestMessageBody:]): Remove obsolete support for non-NSData form data. Use the contentType in the request, if present.
  • ProtocolHandlers.subproj/WebHTTPResourceRequest.h: Add contentType and setContentType methods; convenience for setting the Content-Type header.
  • ProtocolHandlers.subproj/WebHTTPResourceRequest.m: (-[WebResourceRequest _headerForKey:]): Added. (-[WebResourceRequest userAgent]): Use _headerForKey. (-[WebResourceRequest referrer]): Ditto. (-[WebResourceRequest contentType]): Added. Use _headerForKey. (-[WebResourceRequest setContentType:]): Added.
  • ProtocolHandlers.subproj/WebHTTPProtocolHandler.h: Remove requestData.
  • ProtocolHandlers.subproj/WebHTTPProtocolHandler.m: Ditto.

WebCore:

WebCore part of implementation of multipart forms posting.

  • kwq/WebCoreBridge.h: Add a contentType parameter to the bridge's [postWithURL:referrer:data:] method.
  • kwq/KWQKHTMLPartImpl.mm: (KWQKHTMLPartImpl::submitForm): Extract the content type from the args, and pass it along to the bridge.

WebKit:

WebKit part of implementation of multipart forms posting.

  • WebCoreSupport.subproj/WebBridge.m: (-[WebBridge postWithURL:referrer:data:contentType:]): Add a contentType parameter to match change in WebCore API. Put the contentType value into the request.
3:01 PM Changeset in webkit [2269] by cblu
  • 3 edits in trunk/WebKit
  • Plugins.subproj/WebPluginDatabase.m: (-[WebNetscapePluginDatabase init]): Don't override document view and rep types for types that have already been registered.
2:06 PM Changeset in webkit [2268] by kocienda
  • 1 edit in trunk/WebKit/Misc.subproj/WebFileDatabase.m

Add a port to the background thread's run loop so it will not exit
the run method constantly.

  • Database.subproj/WebFileDatabase.m: (+[WebFileDatabase _syncLoop:])
2:06 PM Changeset in webkit [2267] by darin
  • 4 edits in trunk/JavaScriptCore

Fixed absurdly high memory usage when looking at pages that use a lot of JavaScript.

  • kjs/collector.cpp: (Collector::allocate): Implement a new policy of doing a garbage collect every 1000 allocations. The old policy was both complicated and misguided. (Collector::collect): Zero out the "number of allocations since last collect".
1:29 PM Changeset in webkit [2266] by darin
  • 13 edits in trunk

WebCore:

  • fixed 3011025 -- Page up/down is not working when text area has focus
  • kwq/KWQTextArea.mm: (-[KWQTextArea needsPanelToBecomeKey]): Return YES so we are considered a valid key view even when in normal tabbing mode. This fixes a problem with tabbing backwards into a text area. (-[KWQTextAreaTextView scrollPageUp:]): Added. Passes a scrollPageUp: selector along the responder chain if we are already scrolled to the top. (-[KWQTextAreaTextView scrollPageDown:]): Ditto.
  • kwq/KWQNSTextField.mm: Remove unnecessary overrides of textDidEndEditing. Turns out the real fix was to override display to do nothing as a workaround for bug 2753974.

WebKit:

WebKit part of the page up/down fix.

  • WebView.subproj/WebHTMLViewPrivate.m: (-[WebHTMLView scrollPoint:]): If we are called from the handling of a page up or page down keyboard event, then ignore the specific scrolling requested, and do our idea of page up and page down. This guarantees that we will get the smarter idea of how to page from WebView instead of the one that's hardcoded into NSTextView.
  • WebView.subproj/WebView.m: (-[WebView keyDown:]): Use scrollPageUp:, scrollPageDown:, scrollLineUp:, and scrollLineDown: instead of _pageUp, _pageDown, _lineUp, and _lineDown. This lets other classes see and use these selectors, which is useful when passing calls up the responder chain.
  • WebView.subproj/WebViewPrivate.h: Remove the private methods that are being changed to match the NSResponder keyboard methods.
  • WebView.subproj/WebViewPrivate.m: (-[WebView scrollPageUp:]): Rename from _pageUp, and also pass a scrollPageUp: selector along the responder chain if we are already scrolled to the top. (-[WebView scrollPageDown:]): Ditto. (-[WebView scrollLineUp:]): Rename from _lineUp. (-[WebView scrollLineDown:]): Rename from _lineDown.
1:02 PM Changeset in webkit [2265] by rjw
  • 1 edit in trunk/WebCore/force-clean-timestamp

Force build, sorry. PB doesn't seem to be behaving.

12:38 PM Changeset in webkit [2264] by rjw
  • 16 edits in trunk

'Re'play the delegate messages when an item is loaded from
the WebCore cache.

Note that the client will NOT receive a willSendRequest: message. The client
presumably already did any request substitution before the object was loaded
into the cache. Allowing the delegate to override the request and replace
the object in the WebCore cache would introduce significant complexity.

Fixes 3069138.

  • WebCoreSupport.subproj/WebBridge.m: (-[WebBridge objectLoadedFromCache:response:size:]):
  • WebCoreSupport.subproj/WebSubresourceClient.m: (-[WebSubresourceClient handle:didReceiveResponse:]):

Added response to WebCore's CachedObject. This allows us to correctly
emulated the WebResourceLoadDelegate API when 're'loading an item
from the WebCore cache.

  • khtml/misc/loader.cpp: (CachedObject::~CachedObject): (CachedObject::setResponse): (Loader::receivedResponse):
  • khtml/misc/loader.h:
  • kwq/KWQLoaderImpl.h:
  • kwq/KWQLoaderImpl.mm: (-[WebCoreResourceLoader receivedResponse:]): (KWQCheckCacheObjectStatus): (KWQRetainResponse): (KWQReleaseResponse):
  • kwq/WebCoreBridge.h:
  • kwq/WebCoreResourceLoader.h:
11:35 AM Changeset in webkit [2263] by kocienda
  • 1 edit in trunk/WebKit/Misc.subproj/WebFileDatabase.m

Fixed problem in the disk cache where disk writes, once they start, were not being
preempted by future activity through the cache (as it should). The issue here is
that the disk cache was simply "borrowing" the thread that was used to call into
the disk cache to schedule a timer. This turned out to be bad, since that thread
was raised to maximum priority some time ago.

I fixed this by giving the disk cache its own (minimum priority) thread to
write files. This will insulate it from unrelated threading changes in other code.

  • Database.subproj/WebFileDatabase.m: (+[WebFileDatabase _syncLoop:]) (databaseInit) (-[WebFileDatabase setTimer]) (-[WebFileDatabase setObject:forKey:])
Note: See TracTimeline for information about the timeline view.