Timeline



May 12, 2003:

6:19 PM Changeset in webkit [4357] by rjw
  • 3 edits in trunk/WebKit

Fixed 3251316. * Public API Change *

Added -(void)setGroupName:(NSString *) and -(NSString *)groupName;

Reviewed by mjs.

  • WebView.subproj/WebView.h:
  • WebView.subproj/WebView.m:
5:07 PM Changeset in webkit [4356] by rjw
  • 21 edits in trunk

WebCore:

Fixed 3194614 and 3194751. We avoid creating and render objects
and loading any images if the document is in 'renderless' mode.

Also, we now unique instances of the ObjC DOM wrappers.

Reviewed by hyatt/darin.

  • khtml/misc/loader.cpp:
  • khtml/xml/dom_docimpl.cpp:
  • khtml/xml/dom_docimpl.h:
  • khtml/xml/dom_nodeimpl.cpp:
  • kwq/KWQLoader.h:
  • kwq/KWQLoader.mm:
  • kwq/WebCoreBridge.h:
  • kwq/WebCoreBridge.mm:
  • kwq/WebCoreDOMNode.mm:
  • kwq/WebDOMNode.h:

Pass the reported MIME type of an image up to WebKit when
creating an WebImageRenderer. This is useful to help speed up
the selection of an appropriate decoder.

Reviewed by darin.

  • kwq/WebCoreImageRendererFactory.h:
  • kwq/KWQPixmap.h:
  • kwq/KWQPixmap.mm:

WebKit:

Fixed 3194614 and 3194751. Add SPI to set 'renderless' mode
for a frame.

Reviewed by darin.

  • WebView.subproj/WebFramePrivate.h:
  • WebView.subproj/WebFramePrivate.m:

WebImageRenderers now get a MIME type that can be used to faciliate
selection of an appropriate decoder.

Reviewed by darin.

  • WebCoreSupport.subproj/WebImageRenderer.h:
  • WebCoreSupport.subproj/WebImageRenderer.m:
  • WebCoreSupport.subproj/WebImageRendererFactory.m:
  • WebKit.pbproj/project.pbxproj:
4:32 PM Changeset in webkit [4355] by sullivan
  • 7 edits in trunk/WebKit

WebKit:

  • addition to Darin's previous patch; when checking whether a request can be handled, take into account the schemes that were registered without an NSURLProtocol getting involved.

Reviewed by Darin

  • WebView.subproj/WebViewPrivate.h:
  • WebView.subproj/WebViewPrivate.m: (+[WebView _canHandleRequest:]): like NSURLConnection canHandleRequest, but also takes into account the schemes that were registered without an NSURLProtocol
  • Plugins.subproj/WebNetscapePluginStream.m: (-[WebNetscapePluginStream initWithRequest:pluginPointer:notifyData:]): use +[WebView _canHandleRequest] instead of +[NSURLConnection canHandleRequest]
  • WebView.subproj/WebDefaultContextMenuDelegate.m: (-[WebDefaultUIDelegate webView:contextMenuItemsForElement:defaultMenuItems:]): ditto
  • WebView.subproj/WebDefaultPolicyDelegate.m: (-[WebDefaultPolicyDelegate webView:decidePolicyForNavigationAction:request:frame:decisionListener:]): ditto
  • WebView.subproj/WebFramePrivate.m: (-[WebFrame _continueAfterNavigationPolicy:]): ditto

WebBrowser:

  • more code cleanup from bookmarks view change; eliminated BookmarksProtocol entirely.

Reviewed by Darin

  • BookmarksProtocol.h: Removed. Two #defines were moved to BookmarksView.h
  • BookmarksProtocol.m: Removed.
  • BookmarksView.h: Moved to #defines here from BookmarksProtocol.h
  • AppController.m: #import BookmarksView.h instead of BookmarksProtocol.h (+[AppController initialize]): remove call that registered BookmarkProtocol with NSURLProtocol
  • BrowserWebController.m: #import BookmarksView.h instead of BookmarksProtocol.h (-[BrowserWebView decidePolicyForAction:request:frame:newFrameName:decisionListener:]): use +[WebView _canHandleRequest] instead of +[NSURLConnection canHandleRequest] so it works for bookmarks (and any future registered schemes)
  • BrowserWindowController.m: #import BookmarksView.h instead of BookmarksProtocol.h
  • ContextMenuHandler.m: (-[BrowserWebView webView:contextMenuItemsForElement:defaultMenuItems:]): use +[WebView _canHandleRequest] instead of +[NSURLConnection canHandleRequest] so it works for bookmarks (and any future registered schemes)
  • English.lproj/StringsNotToBeLocalized.txt: updated for moving the two #defines
  • WebBrowser.pbproj/project.pbxproj: updated for removed files
4:19 PM Changeset in webkit [4354] by darin
  • 4 edits in trunk/WebCore

Reviewed by Richard.

  • fixed 3240925 -- can't select or copy text from readonly INPUT elements

An AppKit peculiarity. Calling setEditable:NO will have a side effect of
doing setSelectable:NO unless you explicitly did setSelectable:YES.

  • kwq/KWQLineEdit.mm: (QLineEdit::QLineEdit): Call setSelectable:YES.
  • kwq/KWQTextField.mm: (-[KWQTextField setPasswordMode:]): When creating the password field, keep the setSelectable state synchronized. (-[KWQTextField setSelectable:]): If we already have a password field, be sure to keep its selectable state the same as the main field.
1:29 PM Changeset in webkit [4353] by darin
  • 6 edits in trunk/WebKit

WebKit:

Reviewed by John.

  • fixed 3254576 -- REGRESSION: visiting bookmarks view sometimes waits for other tabs to load first
  • WebView.subproj/WebViewPrivate.h: Added new SPI for registering view and represenation classes by scheme rather than MIME type.
  • WebView.subproj/WebViewPrivate.m: (+[WebView _registerViewClass:representationClass:forURLScheme:]]): Added. (+[WebView _generatedMIMETypeForURLScheme:]): Added. Makes a special MIME type for us only by the special "register scheme" mechanism. (+[WebView _representationExistsForURLScheme:]): Added.
  • WebView.subproj/WebMainResourceClient.m: (-[WebMainResourceClient continueAfterContentPolicy:response:]): Check for schemes that have their own representation, and handle them just like empty documents, loading no data, and doing it synchronously. (-[WebMainResourceClient loadWithRequest:]): Same thing here, only also arrange to get the appropriate MIME type. (-[WebMainResourceClient setDefersCallbacks:]): Same check here.
  • English.lproj/StringsNotToBeLocalized.txt: Update for recent changes.

WebBrowser:

Reviewed by John.

  • fixed 3254576 -- REGRESSION: visiting bookmarks view sometimes waits for other tabs to load first
  • AppController.m: (+[AppController initialize]): Register the bookmarks view and representation class using the scheme, not the MIME type.
  • BrowserNSStringExtras.m: (-[NSString possibleURLsForUserTypedString]): Fix off by one error that would cause an NSException when you typed bookmarks:. Also fix so that bookmarks: is not treated as a host name.
9:11 AM Changeset in webkit [4352] by darin
  • 3 edits in trunk/WebCore

Reviewed by John.

  • fixed 3255281 -- REGRESSION: objc_error in key loop code, closing tab containing aintitcool.com page
  • kwq/KWQTextField.mm: (-[KWQSecureTextField nextKeyView]): Change back to using our own nextKeyView implementation. By returning the nextKeyView from KWQTextField, we ended up making AppKit very upset about the key view loop. This undoes a change I made last Thursday, so the regression is very new and was never in a release. (-[KWQSecureTextField previousKeyView]): More of the same. (-[KWQSecureTextField nextValidKeyView]): Ditto. (-[KWQSecureTextField previousValidKeyView]): Ditto.

May 11, 2003:

12:15 PM Changeset in webkit [4351] by hyatt
  • 2 edits in trunk/WebCore

The root element (HTML) tries to set itself to the lowest position
of the canvas, before the canvas has necessarily even determined
the correct lowest position. This creates a timing problem.

This code is legacy code anyyway, left over from before KHTML
understood about overflow. The HTML should not be resizing itself
to enclose positioned content or floats. They should just spill
out of the HTML object, so the fix is easy: kill the legacy code.

There's a second fix required as well, which is to make the canvas
avoid scanning its positioned objects list when computing its
lowest and rightmost position. Fixed positioned objects can't
be scrolled, so it's incorrect to show scrollbars because of
fixed positioned objects (since they are locked to the viewport).

Reviewed by darin/gramps

  • khtml/rendering/render_block.cpp:
12:15 PM Changeset in webkit [4350] by hyatt
  • 3 edits in trunk/WebCore

The root element (HTML) tries to set itself to the lowest position
of the canvas, before the canvas has necessarily even determined
the correct lowest position. This creates a timing problem.

This code is legacy code anyyway, left over from before KHTML
understood about overflow. The HTML should not be resizing itself
to enclose positioned content or floats. They should just spill
out of the HTML object, so the fix is easy: kill the legacy code.

There's a second fix required as well, which is to make the canvas
avoid scanning its positioned objects list when computing its
lowest and rightmost position. Fixed positioned objects can't
be scrolled, so it's incorrect to show scrollbars because of
fixed positioned objects (since they are locked to the viewport).

Reviewed by darin/gramps

  • khtml/rendering/render_block.cpp:
11:53 AM Changeset in webkit [4349] by darin
  • 3 edits in trunk/WebCore

Reviewed by Dave.

  • fixed 3242493 -- loop in khtml::RenderLayer::RenderZTreeNode at google cached copy of epower2go.biz page
  • khtml/rendering/render_layer.cpp: (RenderLayer::RenderZTreeNode::detach): Use an iterative algorithm rather than a recursive one to destroy the child nodes at each level of the tree, so our recursion is O(depth of tree) rather than O(size of tree).
8:27 AM Changeset in webkit [4348] by darin
  • 2 edits in trunk/WebKit
  • WebView.subproj/WebHTMLView.m: (-[WebHTMLView layoutToPageWidth:]): Added a check for nil that I forgot.
8:04 AM Changeset in webkit [4347] by darin
  • 3 edits in trunk/WebKit

Reviewed by John.

  • fixed 3254473 - REGRESSION: reload loop due to onresize handler (fortune.com, flipdog.com, stanford.edu)
  • WebView.subproj/WebHTMLView.m: (-[WebHTMLView layoutToPageWidth:]): Don't send out a resize event any time during the first event that results in a layout. The old check was merely for the first layout, but we need to ignore any number of layouts that are all part of handling a first event. Some day we may need to refine this rule even further, but this fixes the present bug.
  • WebView.subproj/WebHTMLViewPrivate.h: Goodbye laidOutAtLeastOnce, hello firstLayoutEventTime.

May 10, 2003:

11:20 PM Changeset in webkit [4346] by hyatt
  • 3 edits in trunk/WebCore

Fix the misrendering at the top of cnn.com (the extra tearing
by the Google logo on the front page of cnn).

I am reducing the intrinsic margins of text fields down to 2px
to match buttons and selects.

This is easily sufficient distance to avoid focus ring overlap and
still looks nice, e.g., on www.google.com and amazon.com.

Reviewed by mjs

  • khtml/rendering/render_form.h:
6:05 PM Changeset in webkit [4345] by hyatt
  • 6 edits in trunk/WebCore

A refinement of our intrinsic margin rules for form controls.
Rather than always applying the intrinsic margin to form controls,
this patch makes the application conditional.

If the Web page explicitly specifies a width on a form control,
the form control will honor that precise pixel-width and will not
apply left/right intrinsic margins. If a Web page specifies margins
that the control should use, then the control will honor those
margins. The same rules apply for height and top/bottom margins.

Reviewed by mjs

  • khtml/css/html4.css:
  • khtml/rendering/render_box.cpp: (RenderBox::calcReplacedWidth): (RenderBox::calcReplacedHeight):
  • khtml/rendering/render_form.cpp: (RenderFormElement::addIntrinsicMarginsIfNeeded): (RenderFormElement::setStyle):
  • khtml/rendering/render_form.h:
5:32 PM Changeset in webkit [4344] by darin
  • 6 edits in trunk/WebCore

Tests:

Reviewed by Maciej.

  • update tests for removal of prettyURL parameter, added a new test for mailto URLs with subjects
  • TestURLs.h: Added "mailto:mduerst@ifi.unizh.ch?Subject=nothing".
  • kde/kurl-test.chk: Removed prettyURL(1) and prettyURL(-1) tests. Added test results for new URL.
  • kde/kurl-test.cpp: (testURL): Removed prettyURL(1) and prettyURL(-1) tests.
  • test.list: Removed ifnsthreadextensions-test.

WebCore:

Reviewed by Maciej.

  • fixed 3206695 -- Safari puts all of the mailto form content in email subject line, should put content in body

The bug was caused by our KURL class not parsing the query out of the mailto URL properly.

  • kwq/KWQKURL.h: Removed parameter from prettyURL, unused in KHTML.
  • kwq/KWQKURL.mm: (KURL::prettyURL): Removed parameter, unused in KHTML. (KURL::parse): Parse queries even from non-hierarchical URLs. This fixes the bug.
  • WebCore-tests.exp: Updated for parameter removed from prettyURL.
  • WebCore-combined.exp: Regenerated.
12:59 AM Changeset in webkit [4343] by darin
  • 6 edits in trunk/WebKit

WebKit:

Reviewed by Maciej.

  • fixed 3250119 -- REGRESSION: WebFrame leaked after showing pop-up menu

The leak was caused by various code storing the "element" dictionary that describes where
a click took place.

  • WebView.subproj/WebDefaultContextMenuDelegate.m: (-[WebDefaultUIDelegate webView:contextMenuItemsForElement:defaultMenuItems:]): Don't store the element in a retained global. Instead attach it as the represented object to each menu item. (-[WebDefaultUIDelegate openNewWindowWithURL:element:]): Pass in an element. (-[WebDefaultUIDelegate downloadURL:element:]): Ditto. (-[WebDefaultUIDelegate openLinkInNewWindow:]): Get element from represented object. (-[WebDefaultUIDelegate downloadLinkToDisk:]): Ditto. (-[WebDefaultUIDelegate copyLinkToClipboard:]): Ditto. (-[WebDefaultUIDelegate openImageInNewWindow:]): Ditto. (-[WebDefaultUIDelegate downloadImageToDisk:]): Ditto. (-[WebDefaultUIDelegate copyImageToClipboard:]): Ditto. (-[WebDefaultUIDelegate openFrameInNewWindow:]): Ditto.
  • WebView.subproj/WebDefaultUIDelegate.h: Remove element field.
  • WebView.subproj/WebDefaultUIDelegate.m: (-[WebDefaultUIDelegate dealloc]): No need to release element any more.
  • WebView.subproj/WebHTMLViewPrivate.h: Remove dragElement instance variable.
  • WebView.subproj/WebHTMLViewPrivate.m: (-[WebHTMLViewPrivate dealloc]): No need to release dragElement any more. (-[WebHTMLView _handleMouseDragged:]): Get element again here. The old code used to get it from an instance variable, but that is unnecessary. (-[WebHTMLView _mayStartDragWithMouseDragged:]): Don't store the element.

WebBrowser:

Reviewed by Maciej.

  • fixed 3250119 -- REGRESSION: WebFrame leaked after showing pop-up menu

The leak was caused by various code storing the "element" dictionary that describes where
a click took place.

  • BrowserWebController.h: Added windowController and browserWindow methods for convenience. Removed element instance variable. Keeping this dictionary around caused a leak of a WebFrame.
  • BrowserWebController.m: (-[BrowserWebView browserWindow]): Added. (-[BrowserWebView initWithDocument:request:frameName:]): Use browserWindow. (-[BrowserWebView dealloc]): Don't release element. (-[BrowserWebView webViewIsResizable:]): Use browserWindow. (-[BrowserWebView webViewFrame:]): Use browserWindow. (-[BrowserWebView webViewContentRect:]): Use browserWindow. (-[BrowserWebView webView:unableToImplementPolicyWithError:frame:]): Use browserWindow. (-[BrowserWebView openFileExternallyWithRequest:inFrame:]): Use browserWindow. (-[BrowserWebView revealInFinderWithRequest:inFrame:]): Use browserWindow. (-[BrowserWebView decidePolicyForAction:request:frame:newFrameName:decisionListener:]): Use browserWindow. (-[BrowserWebView setShouldStartEmpty]): Use browserWindow.
  • ContextMenuHandler.m: (-[NSMutableArray addMenuItemWithTag:fromArray:]): Moved method from BrowserWebView to NSMutableArray to simplify parameters. (-[NSMutableArray addMenuItemWithTitle:action:]): Ditto. Don't set target any more since we do that in a postprocessing pass. (-[BrowserWebView webView:contextMenuItemsForElement:defaultMenuItems:]): Don't store the element in a retained global. Instead attach it as the represented object to each menu item. Update for changed interface for adding menu items. Set targets and represented objects on all the menu items at the end. (-[BrowserWebView addLinkToBookmarks:]): Get element from represented object. Get window from browserWindow method instead of going the long way through the element. (-[BrowserWebView viewFrameSource:]): Get element from represented object. (-[BrowserWebView savePageAs:]): Get element from represented object. Use the _document instance variable instead of going the long way through the element. (-[BrowserWebView openWithITunes:]): Get element from represented object. (-[BrowserWebView openWithQuickTime:]): Get element from represented object. (-[BrowserWebView googleSearch:]): Get element from represented object. Get the window controller from the windowController method instead of going the long way through the element. (-[BrowserWebView goToAddress:]): Get element from represented object. Do the goToURL: on ourselves rather than going through the document (which will just forward the call to us anyway). (-[BrowserWebView openInNewTab:]): Get element from represented object.
12:56 AM Changeset in webkit [4342] by mjs
  • 6 edits in trunk/WebKit

Tests:

Reviewed by Darin.

Updated for API changes.

  • PictureBrowser/PictureBrowserProtocol.m: (-[PictureBrowserProtocol startLoading]):

WebFoundation:

API CHANGE

Reviewed by Darin.

  • removed secred NSURLResponse mutators from NSURLProtocol.
  • added four-argument init method for NSURLResponse.
  • added NSURLResponseUnknownLength constant.
  • fixed a tiny bug in the HTTP protocol where unknown content length would sometimes get reported as 0.
  • CacheLoader.subproj/NSURLConnection.m: (-[NSURLConnection _didFailWithError:]):
  • CacheLoader.subproj/NSURLProtocol.h:
  • CacheLoader.subproj/NSURLProtocol.m:
  • CacheLoader.subproj/NSURLResponse.h:
  • CacheLoader.subproj/NSURLResponse.m: (-[NSURLResponseInternal initWithURL:MIMEType:expectedContentLength:textEncodingName:]): (-[NSURLResponse initWithURL:MIMEType:expectedContentLength:textEncodingName:]): (-[NSURLResponse init]): (-[NSURLResponse initWithCoder:]): (-[NSURLResponse _setExpectedContentLength:]): (-[NSURLResponse _setMIMEType:]):
  • CacheLoader.subproj/NSURLResponsePrivate.h:
  • ChangeLog:
  • ProtocolHandlers.subproj/NSAboutURLProtocol.m: (-[NSAboutURLProtocol startLoading]):
  • ProtocolHandlers.subproj/NSFTPURLProtocol.m: (-[NSFTPURLProtocol sendResponseAvailableCallback]):
  • ProtocolHandlers.subproj/NSFileURLProtocol.m: (-[NSFileURLProtocol didLoadData:]):
  • ProtocolHandlers.subproj/NSHTTPURLProtocol.m: (-[NSHTTPURLProtocol HTTPResponse]):

WebKit:

Reviewed by Darin.

Updated for NSURLResponse API changes.

  • WebView.subproj/WebBaseResourceHandleDelegate.m: (-[WebBaseResourceHandleDelegate connection:didReceiveResponse:]):
  • WebView.subproj/WebDataProtocol.m: (-[WebDataProtocol startLoading]):
  • WebView.subproj/WebMainResourceClient.m: (-[WebMainResourceClient loadWithRequest:]):

WebBrowser:

Reviewed by Darin.

Updated for NSURLResponse API changes.

  • BookmarksProtocol.m: (-[BookmarksProtocol startLoading]):

May 9, 2003:

11:25 PM Changeset in webkit [4341] by mjs
  • 12 edits
    3 deletes in trunk/WebKit

WebFoundation:

Reviewed by Darin.

  • removed subclasses of NSURLAuthenticationChallenge, and added a `sender' field to allow challenged to be handled generically.
  • AuthenticationManager.subproj/NSHTTPAuthenticator.h:
  • AuthenticationManager.subproj/NSHTTPAuthenticator.m: (-[NSHTTPAuthenticator _tryChallenge:]): (-[NSHTTPAuthenticator _askDelegateWithURL:realm:forRequest:failureCount:failureResponse:protocol:withCallback:context:]): (-[NSHTTPAuthenticator _askDelegateWithURL:proxy:forRequest:failureCount:failureResponse:protocol:withCallback:context:]): (-[NSHTTPAuthenticator useCredential:forAuthenticationChallenge:]): (-[NSHTTPAuthenticator continueWithoutCredentialForAuthenticationChallenge:]):
  • AuthenticationManager.subproj/NSURLAuthenticationChallenge.h:
  • AuthenticationManager.subproj/NSURLAuthenticationChallenge.m: (-[NSURLAuthenticationChallengeInternal initWithProtectionSpace:proposedCredential:previousFailureCount:failureResponse:error:sender:]): (-[NSURLAuthenticationChallenge initWithProtectionSpace:proposedCredential:previousFailureCount:failureResponse:error:sender:]): (-[NSURLAuthenticationChallenge initWithAuthenticationChallenge:sender:]): (-[NSURLAuthenticationChallenge failureResponse]): (-[NSURLAuthenticationChallenge sender]):
  • AuthenticationManager.subproj/NSURLConnectionAuthenticationChallenge.h: Removed.
  • AuthenticationManager.subproj/NSURLConnectionAuthenticationChallenge.m: Removed.
  • AuthenticationManager.subproj/NSURLConnectionAuthenticationChallengeInternal.h: Removed.
  • AuthenticationManager.subproj/NSURLDownloadAuthenticationChallenge.h: Removed.
  • AuthenticationManager.subproj/NSURLDownloadAuthenticationChallenge.m: Removed.
  • AuthenticationManager.subproj/NSURLDownloadAuthenticationChallengeInternal.h: Removed.
  • AuthenticationManager.subproj/NSURLProtocolAuthenticationChallenge.h: Removed.
  • AuthenticationManager.subproj/NSURLProtocolAuthenticationChallenge.m: Removed.
  • CacheLoader.subproj/NSURLConnection.h:
  • CacheLoader.subproj/NSURLConnection.m: (-[NSURLConnection useCredential:forAuthenticationChallenge:]): (-[NSURLConnection continueWithoutCredentialForAuthenticationChallenge:]): (-[NSURLConnection cancelAuthenticationChallenge:]): (-[NSURLConnection _sendDidReceiveAuthenticationCallback]): (-[NSURLConnection _sendDidCancelAuthenticationCallback]): (-[NSURLConnection _performUseCredential]): (-[NSURLConnection _performContinueWithoutCredential]): (-[NSURLConnection _didReceiveAuthenticationChallenge:]): (-[NSURLConnection _didCancelAuthenticationChallenge:]): (-[NSURLConnectionInternal URLProtocol:didReceiveAuthenticationChallenge:]): (-[NSURLConnectionInternal URLProtocol:didCancelAuthenticationChallenge:]):
  • CacheLoader.subproj/NSURLProtocol.h:
  • FileTransfer.subproj/NSURLDownload.h:
  • FileTransfer.subproj/NSURLDownload.m: (-[NSURLDownload useCredential:forAuthenticationChallenge:]): (-[NSURLDownload continueWithoutCredentialForAuthenticationChallenge:]): (-[NSURLDownload cancelAuthenticationChallenge:]): (-[NSURLDownload connection:didReceiveAuthenticationChallenge:]): (-[NSURLDownload connection:didCancelAuthenticationChallenge:]): (-[NSURLDownload connection:didReceiveResponse:]): (-[NSURLConnectionDelegateProxy connection:didReceiveAuthenticationChallenge:]): (-[NSURLConnectionDelegateProxy connection:didCancelAuthenticationChallenge:]):
  • FileTransfer.subproj/NSURLUpload.h:
  • Misc.subproj/WebFoundation.h:
  • ProtocolHandlers.subproj/NSCFNetworkHTTPURLProtocol.h:
  • ProtocolHandlers.subproj/NSCFNetworkHTTPURLProtocol.m: (-[NSCFNetworkHTTPURLProtocol useCredential:forAuthenticationChallenge:]): (-[NSCFNetworkHTTPURLProtocol continueWithoutCredentialForAuthenticationChallenge:]): (-[NSCFNetworkHTTPURLProtocol cancelAuthenticationChallenge:]):
  • WebFoundation.pbproj/project.pbxproj:

WebKit:

Reviewed by Darin.

  • removed WebAuthenticationChallenge
  • adjusted everything for removal of NSURLAuthenticationChallenge subclasses.
  • Misc.subproj/WebDownload.m: (-[WebDownloadInternal download:didReceiveAuthenticationChallenge:]): (-[WebDownloadInternal download:didCancelAuthenticationChallenge:]):
  • Panels.subproj/WebPanelAuthenticationHandler.m: (-[WebPanelAuthenticationHandler startAuthentication:window:]): (-[WebPanelAuthenticationHandler _authenticationDoneWithChallenge:result:]):
  • WebView.subproj/WebAuthenticationChallenge.h: Removed.
  • WebView.subproj/WebAuthenticationChallenge.m: Removed.
  • WebView.subproj/WebAuthenticationChallengeInternal.h: Removed.
  • WebView.subproj/WebBaseResourceHandleDelegate.h:
  • WebView.subproj/WebBaseResourceHandleDelegate.m: (-[WebBaseResourceHandleDelegate useCredential:forAuthenticationChallenge:]): (-[WebBaseResourceHandleDelegate continueWithoutCredentialForAuthenticationChallenge:]): (-[WebBaseResourceHandleDelegate cancelAuthenticationChallenge:]): (-[WebBaseResourceHandleDelegate connection:didReceiveAuthenticationChallenge:]): (-[WebBaseResourceHandleDelegate connection:didCancelAuthenticationChallenge:]): (-[WebBaseResourceHandleDelegate setIdentifier:]):
  • WebView.subproj/WebDefaultResourceLoadDelegate.m: (-[WebDefaultResourceLoadDelegate webView:resource:didReceiveAuthenticationChallenge:fromDataSource:]): (-[WebDefaultResourceLoadDelegate webView:resource:didCancelAuthenticationChallenge:fromDataSource:]):
  • WebView.subproj/WebResourceLoadDelegate.h:
  • Misc.subproj/WebKit.h: Remove headers that are gone.
  • WebKit.exp: Remove classes that are gone.
  • WebKit.pbproj/project.pbxproj: Remove files that are gone.
10:46 PM Changeset in webkit [4340] by darin
  • 7 edits in trunk/WebCore

Reviewed by Maciej.

  • fixed 3131026 -- half-width yen character (x5C) shows up as a backslash

To fix this, I had to reverse our previous decoding approach for the characters
that are different in Shift-JIS and ASCII. Before, we would decode them as
ASCII, and so they would be wrong in web pages, but right in URLs. Now, I decode
them as Shift-JIS, so they are right for web pages. This does not break URLs,
though, because back in February we added code to re-encode characters for URLs
to fix bug 3124596. But there is a TEC bug we have to work around to make this
work right for the tilde character.

  • kwq/KWQTextCodec.mm: (QTextCodec::fromUnicode): Work around the TEC bug that prevents the tilde character from surviving the round trip through the decoding process by explicitly changing decoded tildes back to ASCII tildes. (KWQTextDecoder::convertUsingTEC): Do not set kUnicodeForceASCIIRangeMask.
  • kwq/KWQCString.h: Added replace call for use by new code. Some other small improvements.
  • kwq/KWQCString.mm: (QCString::contains): Make this faster by not doing the case-insensitive and case-sensitive cases both in the same loop. (QCString::append): Changed the += calls to this name, and made the += operator override call these. (QCString::replace): Added.
  • WebCore-tests.exp: Changed to export append calls.
  • WebCore-combined.exp: Regenerated.
9:45 PM Changeset in webkit [4339] by hyatt
  • 3 edits in trunk/WebCore

Finally get tables cutting the right properties off and letting
the right ones through in quirks mode. Font-family *is* inherited
through into tables in all other browsers. We have been doing this
wrong the whole time. Also ensure that font-style and font-variant
are reset.

Reviewed by darin

  • khtml/css/quirks.css:
5:14 PM Changeset in webkit [4338] by hyatt
  • 3 edits in trunk/WebCore

Always allow KONQ_TEXT as a valid value, and don't restrict its
use to lax CSS parsing. (We want our UA sheets to be parsed
strictly.)

Fixes bug 3224791, color inheritance not being properly cut off
in tables in quirks mode.

Reviewed by mjs and darin

  • khtml/css/cssparser.cpp: (CSSParser::parseValue):
5:13 PM Changeset in webkit [4337] by hyatt
  • 2 edits in trunk/WebKit

Change the minfontsize to 1, i.e., to have no minimum. This
matches other browsers while still retaining the pref control
in WebKit.

Fixes www.gamespot.com. The bug is 3254489.

Reviewed by darin

  • WebView.subproj/WebPreferences.m: (+[WebPreferences initialize]):
4:04 PM Changeset in webkit [4336]
  • 11 copies in tags/Safari-74~1

This commit was manufactured by cvs2svn to create tag 'Safari-74~1'.

4:04 PM Changeset in webkit [4335] by darin
  • 8 edits in branches/Safari-74-branch

JavaScriptCore:

WebFoundation:

  • WebFoundation.pbproj/project.pbxproj: Bumped version to 74.

WebCore:

  • WebCore.pbproj/project.pbxproj: Bumped version to 74.

WebKit:

  • WebKit.pbproj/project.pbxproj: Bumped version to 74.

WebBrowser:

  • WebBrowser.pbproj/project.pbxproj: Bumped version to 74.
3:14 PM Changeset in webkit [4334] by mjs
  • 9 edits in trunk/WebKit

WebFoundation:

Reviewed by John.

Rename connection:didFailLoadingWithError: to
connection:didFailWithError: to match NSURLDownload and
NSURLProtocol.

  • CacheLoader.subproj/NSSynchronousURLConnectionDelegate.m:
  • CacheLoader.subproj/NSURLConnection.h:
  • CacheLoader.subproj/NSURLConnection.m: (-[NSURLConnection _sendCallbacks]): (-[NSURLConnection _postDidFailCallback]): (-[NSURLConnection _sendDidFailCallback]): (-[NSURLConnection _wasRedirectedToRequest:redirectResponse:]): (-[NSURLConnection _didFailWithError:]): (-[NSURLConnectionInternal prepareCallbacks]):
  • FileTransfer.subproj/NSURLDownload.m: (-[NSURLDownload connection:didFailWithError:]): (-[NSURLConnectionDelegateProxy connection:didFailWithError:]):

WebKit:

Reviewed by John.

Rename connection:didFailLoadingWithError: to
connection:didFailWithError: to match NSURLDownload and
NSURLProtocol.

  • Misc.subproj/WebIconLoader.m: (-[WebIconLoader connection:didFailWithError:]):
  • Plugins.subproj/WebNetscapePluginStream.m: (-[WebNetscapePluginStream connection:didFailWithError:]):
  • WebCoreSupport.subproj/WebSubresourceClient.m: (-[WebSubresourceClient connection:didFailWithError:]):
  • WebView.subproj/WebBaseResourceHandleDelegate.m: (-[WebBaseResourceHandleDelegate connection:didFailWithError:]):
  • WebView.subproj/WebMainResourceClient.m: (-[WebMainResourceClient receivedError:]): (-[WebMainResourceClient connection:didFailWithError:]):
1:56 PM Changeset in webkit [4333] by rjw
  • 2 edits in trunk/WebKit

Apply the same check used to by-pass fast rendering
in the fix to 3146161 to measurement.

Reviewed by Ken.

  • Misc.subproj/WebKitNSStringExtras.m:
1:44 PM Changeset in webkit [4332] by hyatt
  • 3 edits in trunk/WebCore

Fix for 3253695, XML pages with <style>@import...</style> don't
render. The XML tokenizer is getting text in small chunks, and
so it tries to load the sheet multiple times. This fix patches
the stylesheet code to properly decrement the loading sheet
count when you abort a still-loading @import.

Reviewed by darin

  • khtml/html/html_headimpl.cpp: (HTMLStyleElementImpl::childrenChanged):
10:17 AM Changeset in webkit [4331] by darin
  • 4 edits in trunk/WebCore

Reviewed by John.

  • fixed 3191943 -- XML parsing error occurs when loading shift-JIS Japanese XML file
  • khtml/misc/decoder.h: Add a new type of encoding, EncodingFromXMLHeader.
  • khtml/misc/decoder.cpp: (findXMLEncoding): Added. (Decoder::decode): Call findXMLEncoding to extract the encoding from the XML header.
10:03 AM Changeset in webkit [4330] by kocienda
  • 2 edits in trunk/WebKit

Reviewed by John

Removed unneeded import of WebFoundation/WebQueue.h.

  • WebCoreSupport.subproj/WebTextRendererFactory.h
8:46 AM Changeset in webkit [4329] by darin
  • 5 edits in trunk/WebCore

Reviewed by John and Ken.

  • fixed 3253461 -- stylesheet-reading code does not support BOM
  • fixed 3253359 -- XML parser does not allow UTF-8 BOM
  • kwq/KWQTextCodec.mm: (KWQTextDecoder::KWQTextDecoder): Initialize the new _littleEndian, _atStart, and _numBufferedBytes fields, not the old _flags, _state, and _haveBufferedByte fields. (KWQTextDecoder::convertUTF16): Moved the BOM-based endianness detection out of here; now done in toUnicode. Switched to use the new multibyte buffer, even though we only need one byte of it. Remove any BOM characters encountered within the text. (KWQTextDecoder::convertUsingTEC): Remove any BOM characters encountered within the text. (KWQTextDecoder::toUnicode): Do all the BOM detection at this level, including the UTF-8 BOM as well as the UTF-16 BOM.
  • khtml/misc/decoder.cpp: (Decoder::decode): Don't bother stripping the UTF-8 BOM. The QTextCodec object handles that now.
  • kwq/KWQXmlSimpleReader.mm: (QXmlSimpleReader::parse): Pass in the data in 16-bit character form, and specify the encoding when creating the parser. Both expat and KHTML want to do the decoding, so this is really just a way to get expat to back off.

May 8, 2003:

10:41 PM Changeset in webkit [4328] by rjw
  • 2 edits in trunk/WebKit

Fixed 3146161. Use the AppKit to render complex
text in the simple string drawing method.

Reviewed by John.

  • Misc.subproj/WebKitNSStringExtras.m:
10:32 PM Changeset in webkit [4327] by rjw
  • 6 edits in trunk/WebKit

Make representations without intrinsic titles return nil for

  • (NSString *)title

Reviewed by John.

  • Plugins.subproj/WebNetscapePluginRepresentation.m:
  • WebView.subproj/WebDataSourcePrivate.h:
  • WebView.subproj/WebDataSourcePrivate.m:
  • WebView.subproj/WebImageRepresentation.m:
  • WebView.subproj/WebTextRepresentation.m:
6:54 PM Changeset in webkit [4326] by rjw
  • 7 edits in trunk/WebKit

Fixed 3252460. * Public API Change *
Added title method to WebDocumentRepresentation.

Fixed 3250352. Check that delegate implements method.

Reviewed by hyatt.

  • WebView.subproj/WebDataSource.m: (-[WebDataSource pageTitle]):
  • WebView.subproj/WebDataSourcePrivate.h:
  • WebView.subproj/WebDataSourcePrivate.m: (-[WebDataSource _startLoading:]): (-[WebDataSource _title]):
  • WebView.subproj/WebDocument.h:
  • WebView.subproj/WebHTMLRepresentation.m: (-[WebHTMLRepresentation title]):
  • WebView.subproj/WebImageRepresentation.m: (-[WebImageRepresentation title]):
  • WebView.subproj/WebNetscapePluginRepresentation.m: (-[WebNetscapePluginRepresentation title]):
  • WebView.subproj/WebTextRepresentation.h:
  • WebView.subproj/WebTextRepresentation.m: (-[WebTextRepresentation dealloc]): (-[WebTextRepresentation setDataSource:]): (-[WebTextRepresentation title]):
6:16 PM Changeset in webkit [4325] by hyatt
  • 9 edits in trunk/WebCore

Fix the definition of isRoot() so that it doesn't depend on
the object being in the render tree yet (and to avoid any
virtual function calls as well).

Make sure that requiresLayer() returns true if the object is
the root. This way the layer isn't destroyed when you e.g.,
hit Cmd+ to increase font size.

This fixes bug 3252496.

Reviewed by rjw

  • khtml/rendering/render_block.cpp:
  • khtml/rendering/render_box.cpp: (RenderBox::setStyle):
  • khtml/rendering/render_object.cpp: (RenderObject::isRoot):
  • khtml/rendering/render_object.h:
  • khtml/xml/dom_elementimpl.cpp: (ElementImpl::createRenderer):
6:13 PM Changeset in webkit [4324] by kocienda
  • 2 edits in trunk/WebKit/Misc.subproj

2003-05-08 Ken Kocienda <kocienda@apple.com>

WebBrowser:

Reviewed by Maciej

A number of file and class name changes in WebFoundation, as done
by running this tops script.

replace "WebAboutProtocol" with "NSAboutURLProtocol"
replace "WebCFNetworkHTTPProtocol" with "NSCFNetworkHTTPURLProtocol"
replace "WebFileProtocol" with "NSFileURLProtocol"
replace "WebHTTPProtocol" with "NSHTTPURLProtocol"
replace "WebSimpleHTTPProtocol" with "NSSimpleHTTPURLProtocol"
replace "WebSSLProxyWrapperStream" with "NSSSLProxyWrapperStream"

There were also some changes I did by hand in DebugUtilities.m, to
bring up to date some flag names used to figure out what protocols are
registered.

  • Debug/DebugUtilities.m: (-[DebugUtilities supportedProtocolHandlersSubmenuItem]): (-[BrowserDocument setCertificatePolicy:]): (-[BrowserDocument validate_setCertificatePolicy:]): (initProtocolHandlers): (-[BrowserDocument unregisterAllProtocolHandlers]): (-[BrowserDocument reregisterAllProtocolHandlers]): (-[BrowserDocument toggleAboutURLProtocolHandler:]): (-[BrowserDocument validate_toggleAboutURLProtocolHandler:]): (-[BrowserDocument toggleFileURLProtocolHandler:]): (-[BrowserDocument validate_toggleFileURLProtocolHandler:]): (-[BrowserDocument toggleCFNetworkHTTPURLProtocolHandler:]): (-[BrowserDocument validate_toggleCFNetworkHTTPURLProtocolHandler:]): (-[BrowserDocument toggleSimpleHTTPURLProtocolHandler:]): (-[BrowserDocument validate_toggleSimpleHTTPURLProtocolHandler:]):

WebFoundation:

A number of file and class name changes in WebFoundation, as done
by running this tops script.

/* Cookies */
replace "WebCookieStorage" with "NSHTTPCookieDOStorage"
replace "WebCookieStorageServer" with "NSHTTPCookieServer"

/* CacheLoader */
replace "WebNetworkSettings" with "NSNetworkSettings"
replace "WebNetworkSettingsPrivate" "NSNetworkSettingsPrivate"
replace "_settingsPrivate" "_internal"
replace "WebSynchronousDelegate" with "NSSynchronousURLConnectionDelegate"

/* Database */
replace "WebLRUFileList" with "NSLRUFileList"

/* Protocols */
replace "WebAboutProtocol" with "NSAboutURLProtocol"
replace "WebCFNetworkHTTPProtocol" with "NSCFNetworkHTTPURLProtocol"
replace "WebFileProtocol" with "NSFileURLProtocol"
replace "WebHTTPProtocol" with "NSHTTPURLProtocol"
replace "WebSimpleHTTPProtocol" with "NSSimpleHTTPURLProtocol"
replace "WebSSLProxyWrapperStream" with "NSSSLProxyWrapperStream"

Also, the NSLRUFileList files have many C functions whose names
changed from Web to NS prefixes.

  • AuthenticationManager.subproj/NSHTTPAuthenticator.m: (-[NSHTTPAuthenticator _proxyProtectionSpaceForURL:]):
  • AuthenticationManager.subproj/NSURLCredentialStorage.m:
  • CacheLoader.subproj/NSNetworkSettings.h:
  • CacheLoader.subproj/NSNetworkSettings.m: (-[NSNetworkSettings _updateProxySettings]): (proxySettingsChanged): (-[NSNetworkSettings _listenForProxySettingChanges]): (-[NSNetworkSettings _URLMatchesProxyExceptions:]): (-[NSNetworkSettings _init]): (-[NSNetworkSettings init]): (-[NSNetworkSettings dealloc]): (initSharedNetworkSettings): (+[NSNetworkSettings sharedNetworkSettings]): (-[NSNetworkSettings proxyPropertiesForURL:]): (-[NSNetworkSettings connectedToInternet:]):
  • CacheLoader.subproj/NSSynchronousURLConnectionDelegate.h:
  • CacheLoader.subproj/NSSynchronousURLConnectionDelegate.m:
  • CacheLoader.subproj/NSURLCache.m: (-[NSURLCacheInternal dealloc]): (-[NSURLCache _diskCacheSync:]): (-[NSURLCache _diskCacheCreateLRUList:]): (-[NSURLCache _diskCacheGet:]): (-[NSURLCache _diskCacheTruncate:]): (-[NSURLCache _diskCacheExecuteWrite:]): (-[NSURLCache _diskCacheExecuteRemoval:]):
  • CacheLoader.subproj/NSURLConnection.m: (+[NSURLConnection _forceSingleLoad]): (_loadThrottler):
  • CacheLoader.subproj/NSURLProtocol.m: (NSURLProtocolInit):
  • CacheLoader.subproj/WebNetworkSettings.h: Removed.
  • CacheLoader.subproj/WebNetworkSettings.m: Removed.
  • CacheLoader.subproj/WebSynchronousDelegate.h: Removed.
  • CacheLoader.subproj/WebSynchronousDelegate.m: Removed.
  • CookieManager.subproj/NSHTTPCookieDOStorage.h:
  • CookieManager.subproj/NSHTTPCookieDOStorage.m: (-[NSHTTPCookieDOStorage _updateCookiesFromServer]): (-[NSHTTPCookieDOStorage _establishConnection]): (-[NSHTTPCookieDOStorage init]):
  • CookieManager.subproj/NSHTTPCookieServer.h:
  • CookieManager.subproj/NSHTTPCookieServer.m: (checkForCookieExpiration): (-[NSHTTPCookieServer init]):
  • CookieManager.subproj/NSHTTPCookieStorage.m: (-[NSHTTPCookieStorage _connectToCookieStorage]):
  • CookieManager.subproj/WebCookieStorage.h: Removed.
  • CookieManager.subproj/WebCookieStorage.m: Removed.
  • CookieManager.subproj/WebCookieStorageServer.h: Removed.
  • CookieManager.subproj/WebCookieStorageServer.m: Removed.
  • Database.subproj/NSLRUFileList.h:
  • Database.subproj/NSLRUFileList.m: (NSLRUFileListCreate): (NSLRUFileListRelease): (NSLRUFileListRebuildFileDataUsingRootDirectory): (NSLRUFileListRemoveFileWithPath): (NSLRUFileListTouchFileWithPath): (NSLRUFileListSetFileData): (NSLRUFileListGetPathOfOldestFile): (NSLRUFileListRemoveOldestFileFromList): (NSLRUFileListContainsItem): (NSLRUFileListGetFileSize): (NSLRUFileListCountItems): (NSLRUFileListGetTotalSize): (NSLRUFileListRemoveAllFilesFromList): (compareTimes): (NSLRUFileDataEqual): (NSLRUFileListGetOldestFileData): (NSLRUFileDataReleaseApplierFunction): (NSLRUFileDataRelease): (NSLRUFileDataBinaryHeapDumpApplierFunction): (NSLRUFileDataDictDumpApplierFunction): (NSLRUFileListDescription):
  • Database.subproj/WebFileDatabase.h:
  • Database.subproj/WebFileDatabase.m: (-[WebFileDatabase _createLRUList:]): (-[WebFileDatabase _truncateToSizeLimit:]): (-[WebFileDatabase objectForKey:]): (-[WebFileDatabase performSetObject:forKey:]): (-[WebFileDatabase performRemoveObjectForKey:]): (-[WebFileDatabase close]): (-[WebFileDatabase lazySync:]): (-[WebFileDatabase sync]): (-[WebFileDatabase count]): (-[WebFileDatabase usage]):
  • Database.subproj/WebLRUFileList.h: Removed.
  • Database.subproj/WebLRUFileList.m: Removed.
  • English.lproj/StringsNotToBeLocalized.txt:
  • ProtocolHandlers.subproj/NSAboutURLProtocol.h:
  • ProtocolHandlers.subproj/NSAboutURLProtocol.m:
  • ProtocolHandlers.subproj/NSCFNetworkHTTPURLProtocol.h:
  • ProtocolHandlers.subproj/NSCFNetworkHTTPURLProtocol.m: (NSCFNetworkHTTPURLProtocolInit): (readStreamCallback): (+[NSCFNetworkHTTPURLProtocol _certificatePolicy]): (+[NSCFNetworkHTTPURLProtocol _setCertificatePolicy:]): (+[NSCFNetworkHTTPURLProtocol _supportsCertificatePolicy:]): (-[NSCFNetworkHTTPURLProtocol initWithRequest:cachedResponse:client:]): (-[NSCFNetworkHTTPURLProtocol continueBeginLoadInBackgroundAfterCreatingHTTPRequest]):
  • ProtocolHandlers.subproj/NSFTPURLProtocol.h:
  • ProtocolHandlers.subproj/NSFTPURLProtocol.m: (NSFTPURLProtocolInit): (readStreamCallback): (-[NSFTPURLProtocol initWithRequest:cachedResponse:client:]): (-[NSFTPURLProtocol startLoading]): (-[NSFTPURLProtocol determineErrorAndFail]):
  • ProtocolHandlers.subproj/NSFileURLProtocol.h:
  • ProtocolHandlers.subproj/NSFileURLProtocol.m:
  • ProtocolHandlers.subproj/NSHTTPURLProtocol.h:
  • ProtocolHandlers.subproj/NSHTTPURLProtocol.m: (-[NSHTTPURLProtocol startOriginLoad]): (-[NSHTTPURLProtocol stopLoading]): (-[NSHTTPURLProtocol buildHTTPRequest]): (-[NSHTTPURLProtocol determineErrorAndFail]): (-[NSHTTPURLProtocol didAddCredentials:toRequest:context:]): (-[NSHTTPURLProtocol cleanUpForRetry]):
  • ProtocolHandlers.subproj/NSSSLProxyWrapperStream.h:
  • ProtocolHandlers.subproj/NSSSLProxyWrapperStream.m: (wSocketStreamCallBack): (WebCFReadStreamOpenThroughSSLProxy): (WebCFReadStreamCancelOpenThroughSSLProxy):
  • ProtocolHandlers.subproj/NSSimpleHTTPURLProtocol.h:
  • ProtocolHandlers.subproj/NSSimpleHTTPURLProtocol.m: (ensureRequestStringCapacity): (appendBytesToRequestString): (appendIntegerToRequestString): (appendNSStringToRequestString): (NSSimpleHTTPURLProtocolInit): (_socketWriteCallback): (_socketReadCallback): (_addCookieHeader): (_hostNameResolved): (+[NSSimpleHTTPURLProtocol canInitWithRequest:]): (-[NSSimpleHTTPURLProtocol initWithRequest:cachedResponse:client:]):
  • ProtocolHandlers.subproj/WebAboutProtocol.h: Removed.
  • ProtocolHandlers.subproj/WebAboutProtocol.m: Removed.
  • ProtocolHandlers.subproj/WebCFNetworkHTTPProtocol.h: Removed.
  • ProtocolHandlers.subproj/WebCFNetworkHTTPProtocol.m: Removed.
  • ProtocolHandlers.subproj/WebFTPProtocol.h: Removed.
  • ProtocolHandlers.subproj/WebFTPProtocol.m: Removed.
  • ProtocolHandlers.subproj/WebFileProtocol.h: Removed.
  • ProtocolHandlers.subproj/WebFileProtocol.m: Removed.
  • ProtocolHandlers.subproj/WebHTTPProtocol.h: Removed.
  • ProtocolHandlers.subproj/WebHTTPProtocol.m: Removed.
  • ProtocolHandlers.subproj/WebSSLProxyWrapperStream.h: Removed.
  • ProtocolHandlers.subproj/WebSSLProxyWrapperStream.m: Removed.
  • ProtocolHandlers.subproj/WebSimpleHTTPProtocol.h: Removed.
  • ProtocolHandlers.subproj/WebSimpleHTTPProtocol.m: Removed.
  • WebFoundation-base.exp:
  • WebFoundation.pbproj/project.pbxproj:
5:15 PM Changeset in webkit [4323] by hyatt
  • 3 edits in trunk/WebCore

Background-position-x and y should be length|percentage. Number
is not a valid option. Need to remove this so that the quirk will
kick in that translates numbers to pixels. Fixes an issue on
diveintomark's list.

Reviewed by darin

  • khtml/css/cssparser.cpp: (CSSParser::parseValue):
5:04 PM Changeset in webkit [4322] by darin
  • 3 edits in trunk/WebCore

Reviewed by Dave.

  • fixed part of the cause of 3251979 -- switching tabs hoses page layout
  • kwq/WebCoreSettings.mm: (-[WebCoreSettings _updateAllViews]): Only update views that are using this settings object. The old way would result in re-laying out all views every time you created a new one.
4:43 PM Changeset in webkit [4321]
  • 3 copies
    6 deletes in tags/WebKit-78~1

This commit was manufactured by cvs2svn to create tag 'WebKit-78~1'.

4:43 PM Changeset in webkit [4320] by darin
  • 2 edits in branches/Safari-78~1-branch/WebKit

Rolled in change from main trunk.

2003-05-08 Darin Adler <Darin Adler>

  • WebKit.pbproj/project.pbxproj: Fixed paths for non-Panther builds.
4:33 PM Changeset in webkit [4319] by darin
  • 2 edits in trunk/WebKit
  • WebKit.pbproj/project.pbxproj: Fixed paths for non-Panther builds.
3:51 PM Changeset in webkit [4318] by darin
  • 4 edits in trunk/WebCore

Reviewed by Dave.

  • fixed regression caused by my last check-in; need to use the KHTMLView layout function
  • kwq/KWQWidget.mm: (QWidget::setFocus): Use KHTMLView's layout instead of RenderCanvas's.
  • fixed 3251913 -- when form field has focus, dragging across text elsewhere does not select it
  • khtml/xml/dom_docimpl.cpp: (DocumentImpl::setSelection): Remove setFocusNode(0) call. Apparently not needed these days. I tested and everything works fine without it, and its side effect was the bug above. (DocumentImpl::setFocusNode): Remove clearSelection() call for similar reasons.
3:23 PM Changeset in webkit [4317] by darin
  • 6 edits in trunk/WebCore

Reviewed by Maciej.

  • fixed 3251985 -- REGRESSION: tabbing doesn't scroll text fields into view any more
  • kwq/KWQTextField.h: Add a _hasFocus field, which prevents us from focusing multiple times.
  • kwq/KWQTextField.mm: (+[KWQTextField initialize]): Set KWQTextFieldCell as the cell class. We need a cell subclass to detect when editing begins. (-[KWQTextField setPasswordMode:]): Don't pass a QLineEdit to the secure text field when creating it. It's no longer needed. (-[KWQTextField controlTextDidEndEditing:]): Call setHasFocus:NO, and do the actual work in there. (-[KWQTextField control:textShouldBeginEditing:]): Remove the work that was done in here. This is only called when you actually start typing, so it's too late. (-[KWQTextField becomeFirstResponder]): Keep the code to forward first responder to the password field, but get rid of the rest, because this code path does not cover all the ways to start editing. (-[KWQTextField currentEditorForEitherField]): Moved this method inside the KWQInternal category. (-[KWQTextField selectedRange]): Ditto. (-[KWQTextField setSelectedRange:]): Ditto. (-[KWQTextField setHasFocus:]): Added. This method does all the work we want to do when we get focus and when we relinquish focus, including scrolling to make the field visible. (-[KWQTextFieldCell editWithFrame:inView:editor:delegate:event:]): Call setHasFocus:YES on the KWQTextField. (-[KWQTextFieldCell selectWithFrame:inView:editor:delegate:start:length:]): Ditto. (+[KWQSecureTextField cellClass]): Use KWQSecureTextFieldCell as the cell class. We need a cell subclass to detect when editing begins and we can't use the normal technique because NSSecureTextField will raise an exception. (-[KWQSecureTextField nextKeyView]): Simplified to just call through to KWQTextField. (-[KWQSecureTextField previousKeyView]): Ditto. (-[KWQSecureTextField nextValidKeyView]): Ditto. (-[KWQSecureTextField previousValidKeyView]): Ditto. (-[KWQSecureTextField widget]): Ditto. (-[KWQSecureTextField fieldEditorDidMouseDown:]): Ditto. (-[KWQSecureTextFieldCell editWithFrame:inView:editor:delegate:event:]): Call setHasFocus:YES on the KWQTextField. (-[KWQSecureTextFieldCell selectWithFrame:inView:editor:delegate:start:length:]): Ditto.
  • kwq/KWQWidget.mm: (QWidget::setFocus): Do a layout before positioning the widget. The code dealt with calls after a layout and before a draw, before, but not calls before a layout.
2:59 PM Changeset in webkit [4316] by hyatt
  • 3 edits in trunk/WebCore

Fix for a problem where positioned/floating children with
percentage width tables inside them don't expand to fill
the width of their containing block.

The way to solve this is to detect this
case and treat the block as though it has an infinite maxwidth.

Note that this is a quirk only, since doing this for real would
be crazy. We're basically just matching broken WinIE behavior.

Reviewed by kocienda

  • khtml/rendering/render_block.cpp:
2:03 PM Changeset in webkit [4315]
  • 3 copies in tags/Safari-78-dev-release

This commit was manufactured by cvs2svn to create tag
'Safari-78-dev-release'.

2:03 PM Changeset in webkit [4314] by sullivan
  • 7 edits in trunk/WebKit

Closed up all gaps in WebKit between "ASSERT" and "(" to
make Darin's day a little brighter.

Reviewed by Darin

  • WebCoreSupport.subproj/WebBridge.m: (-[WebBridge pluginViewWithPackage:attributes:baseURL:]): (-[WebBridge handleMouseDragged:]): (-[WebBridge mayStartDragWithMouseDragged:]):
  • WebCoreSupport.subproj/WebImageRenderer.m: (-[WebImageRenderer drawClippedToValidInRect:fromRect:]):
  • WebView.subproj/WebBaseResourceHandleDelegate.m: (-[WebBaseResourceHandleDelegate _releaseResources]): (-[WebBaseResourceHandleDelegate dealloc]):
  • WebView.subproj/WebFramePrivate.m: (-[WebFrame _transitionToCommitted:]):
  • WebView.subproj/WebViewPrivate.m: (-[WebView _preferencesChangedNotification:]):
1:52 PM Changeset in webkit [4313] by sullivan
  • 8 edits in trunk/WebKit
  • fixed 3252632 -- Registering a WebDocumentView too early breaks built-in image viewing

A startup-performance optimization was breaking the case
where clients registered WebDocumentView types before the
first WebFrameView had been created. The fix is to allow
registering WebDocumentView types without retrieving the
built-in image types.

Reviewed by Darin

  • WebView.subproj/WebFrameViewPrivate.h: remove _viewTypes; expose _viewTypesAllowImageTypeOmission. All callers have to specify the boolean now.
  • WebView.subproj/WebFrameViewPrivate.m: (+[WebFrameView _viewTypesAllowImageTypeOmission:]): assert that the list of image types isn't nil before inserting them; insert each image type only if not already present. (+[WebFrameView _viewClassForMIMEType:]): replace _viewTypes with _viewTypesAllowImageTypeOmission
  • Plugins.subproj/WebPluginDatabase.m: (-[WebPluginDatabase init]): replace _viewTypes with _viewTypesAllowImageTypeOmission
  • WebView.subproj/WebDataSourcePrivate.h: remove _repTypes; expose _repTypesAllowImageTypeOmission. All callers have to specify the boolean now.
  • WebView.subproj/WebDataSourcePrivate.m: (+[WebDataSource _representationClassForMIMEType:]): replace _repTypes with _repTypesAllowImageTypeOmission
  • WebView.subproj/WebView.m: (+[WebView registerViewClass:representationClass:forMIMEType:]): replace _viewTypes with _viewTypesAllowImageTypeOmission, and replace _repTypes with _repTypesAllowImageTypeOmission
1:44 PM Changeset in webkit [4312] by sheridan
  • 3 edits in trunk

Safari-79u stamp

12:22 PM Changeset in webkit [4311] by darin
  • 3 edits in trunk/WebKit

Reviewed by Richard.

  • fixed 3242414 -- REGRESSION: PLT times reported 10% slower after emptying cache with B/F cache enabled
  • made it only compute the page cache size once
  • History.subproj/WebBackForwardList.m: (-[WebBackForwardList init]): Set initial page cache size to special value, COMPUTE_DEFAULT_PAGE_CACHE_SIZE. (-[WebBackForwardList setPageCacheSize:]): Remove code to set pageCacheSizeModified and call to _setUsesPageCache:, not needed any more. (-[WebBackForwardList pageCacheSize]): If cache size is COMPUTE_DEFAULT_PAGE_CACHE_SIZE, then compute it. The old code would compute the cache size each time this method was called until pageCacheSizeModified was set. (-[WebBackForwardList _usesPageCache]): Just check pageCacheSize for 0 to see if we use a page cache. No need for a separate boolean any more.
  • History.subproj/WebHistoryItemPrivate.h: Remove _setUsesPageCache (gone altogether) and _clearPageCache (now only used internally).
11:54 AM Changeset in webkit [4310]
  • 3 copies in branches/Safari-78~1-branch

This commit was manufactured by cvs2svn to create branch
'Safari-78~1-branch'.

11:54 AM Changeset in webkit [4309]
  • 3 copies in tags/Safari-78~1-anchor

This commit was manufactured by cvs2svn to create tag
'Safari-78~1-anchor'.

11:54 AM Changeset in webkit [4308]
  • 3 copies in tags/Safari-78

This commit was manufactured by cvs2svn to create tag 'Safari-78'.

11:54 AM Changeset in webkit [4307] by sheridan
  • 8 edits in trunk

Safari-78 version stamp

7:57 AM Changeset in webkit [4306] by darin
  • 3 edits in trunk/WebCore

Reviewed by Ken.

  • fixed 3174769 -- Safari doesn't ignore byte order mark at start of UTF-8 HTML document
  • khtml/misc/decoder.cpp: (Decoder::decode): Added handling of the UTF-8 BOM to the code that already handled the UTF-16 BOM.
Note: See TracTimeline for information about the timeline view.