Fix for 3258389, min-width should take precedence over max-width.
	I just had an "else" that shouldn't have been there, so that
	min-width would get checked even if max-width was also checked.

        Reviewed by NOBODY (OOPS!).

        * khtml/rendering/render_box.cpp:
        (RenderBox::calcWidth):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@4373 268f45cc-cd09-0410-ab3c-d52691b4dbfc
	Fix for 3258389, min-width should take precedence over max-width.
	I just had an "else" that shouldn't have been there, so that
	min-width would get checked even if max-width was also checked.

        Reviewed by kocienda

        * khtml/rendering/render_box.cpp:
        (RenderBox::calcWidth):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@4374 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Tests:

        Reviewed by David

	File and class renamings in WebFoundation:

	WebKeyValuePair -> NSURLKeyValuePair
	WebReadWriteLock -> NSURLReadWriteLock
	WebRecursiveReadWriteLock -> NSURLRecursiveReadWriteLock

        * WebFoundation-Misc/ifnsstringextensions-test.m:
        (formatPair):
        (main):
        * WebFoundation-Misc/ifreadwritelock-test.m:
        (main):
        * WebFoundation-Misc/ifrecursivereadwritelock-test.m:
        (main):

WebFoundation:

        Reviewed by David

	File and class renamings:

	WebFileTypeMappings -> NSURLFileTypeMappings
	WebHostNameAddressInfo.h -> NSURLHostNameAddressInfo.h
	WebKeyValuePair -> NSURLKeyValuePair
	WebMonitor -> NSURLMonitor
	WebQueue -> NSURLQueue
	WebReadWriteLock -> NSURLReadWriteLock
	WebRecursiveReadWriteLock -> NSURLRecursiveReadWriteLock
	WebSpinLock -> NSURLSpinLock

        * AuthenticationManager.subproj/NSHTTPAuthenticator.h:
        * AuthenticationManager.subproj/NSHTTPAuthenticator.m:
        (-[NSHTTPAuthenticator _internalInit]):
        * AuthenticationManager.subproj/NSURLCredentialStorage.m:
        * CacheLoader.subproj/NSNetworkSettings.m:
        (-[NSNetworkSettingsInternal init]):
        * CacheLoader.subproj/NSSynchronousURLConnectionDelegate.h:
        * CacheLoader.subproj/NSSynchronousURLConnectionDelegate.m:
        (-[NSSynchronousURLConnectionDelegate initWithRequest:monitor:]):
        * CacheLoader.subproj/NSURLCache.m:
        (-[NSURLCache initWithMemoryCapacity:diskCapacity:diskPath:]):
        * CacheLoader.subproj/NSURLConnection.m:
        (NSURLConnectionInit):
        * CacheLoader.subproj/NSURLConnectionQueue.h:
        * CacheLoader.subproj/NSURLConnectionQueue.m:
        (-[NSURLConnectionQueue put:URL:]):
        * CacheLoader.subproj/NSURLResponse.m:
        (-[NSHTTPURLResponse _parseCacheControl]):
        * ChangeLog:
        * CookieManager.subproj/NSHTTPCookie.m:
        (+[NSHTTPCookie cookieWithV0Spec:forURL:locationHeader:]):
        * CookieManager.subproj/NSHTTPCookieStorage.m:
        (-[NSHTTPCookieStorageInternal init]):
        * English.lproj/StringsNotToBeLocalized.txt:
        * Misc.subproj/NSURLFileTypeMappings.h:
        * Misc.subproj/NSURLFileTypeMappings.m:
        (-[NSURLFileTypeMappings _init]):
        (initFileTypeMappings):
        (+[NSURLFileTypeMappings sharedMappings]):
        * Misc.subproj/NSURLHostNameAddressInfo.h:
        * Misc.subproj/NSURLHostNameAddressInfo.m:
        (NSURLHostNameAddressInfoInit):
        (+[NSURLHostNameAddressInfo addressInfoForHost:]):
        (+[NSURLHostNameAddressInfo asyncResolveWithCallbackClient:]):
        (doResolveHostName):
        (resolveHostName):
        * Misc.subproj/NSURLKeyValuePair.h:
        * Misc.subproj/NSURLKeyValuePair.m:
        (+[NSURLKeyValuePair pair]):
        (+[NSURLKeyValuePair pairWithKey:value:]):
        (-[NSURLKeyValuePair description]):
        * Misc.subproj/NSURLMonitor.h:
        * Misc.subproj/NSURLMonitor.m:
        * Misc.subproj/NSURLQueue.h:
        * Misc.subproj/NSURLQueue.m:
        (+[NSURLQueue newNode]):
        (-[NSURLQueue init]):
        (-[NSURLQueue put:]):
        (-[NSURLQueue take]):
        (-[NSURLQueue peekAt:]):
        (-[NSURLQueue remove:]):
        (-[NSURLQueue clear]):
        (-[NSURLQueue indexOf:]):
        * Misc.subproj/NSURLReadWriteLock.h:
        * Misc.subproj/NSURLReadWriteLock.m:
        (-[NSURLReadWriteLock init]):
        * Misc.subproj/NSURLRecursiveReadWriteLock.h:
        * Misc.subproj/NSURLRecursiveReadWriteLock.m:
        * Misc.subproj/NSURLSpinLock.h:
        * Misc.subproj/NSURLSpinLock.m:
        * Misc.subproj/WebFileTypeMappings.h: Removed.
        * Misc.subproj/WebFileTypeMappings.m: Removed.
        * Misc.subproj/WebHostNameAddressInfo.h: Removed.
        * Misc.subproj/WebHostNameAddressInfo.m: Removed.
        * Misc.subproj/WebKeyValuePair.h: Removed.
        * Misc.subproj/WebKeyValuePair.m: Removed.
        * Misc.subproj/WebMonitor.h: Removed.
        * Misc.subproj/WebMonitor.m: Removed.
        * Misc.subproj/WebNSArrayExtras.m:
        (-[NSArray _web_encodeWWWFormURLData]):
        * Misc.subproj/WebNSDataExtras.m:
        (-[NSData _web_guessedMIMETypeForExtension:]):
        * Misc.subproj/WebNSStringExtras.h:
        * Misc.subproj/WebNSStringExtras.m:
        (-[NSString _web_parseAsKeyValuePair]):
        (-[NSString _web_parseAsKeyValuePairHandleQuotes:]):
        (-[NSString _web_fileNameFromContentDispositionHeader]):
        (-[NSString _web_timeoutFromKeepAliveHeader]):
        * Misc.subproj/WebNSURLExtras.m:
        (-[NSURL _web_suggestedFilenameWithMIMEType:]):
        * Misc.subproj/WebQueue.h: Removed.
        * Misc.subproj/WebQueue.m: Removed.
        * Misc.subproj/WebReadWriteLock.h: Removed.
        * Misc.subproj/WebReadWriteLock.m: Removed.
        * Misc.subproj/WebRecursiveReadWriteLock.h: Removed.
        * Misc.subproj/WebRecursiveReadWriteLock.m: Removed.
        * Misc.subproj/WebSpinLock.h: Removed.
        * Misc.subproj/WebSpinLock.m: Removed.
        * ProtocolHandlers.subproj/NSCFNetworkHTTPURLProtocol.m:
        * ProtocolHandlers.subproj/NSFTPURLProtocol.m:
        (-[NSFTPURLProtocol sendResponseAvailableCallback]):
        * ProtocolHandlers.subproj/NSFileURLProtocol.m:
        (-[NSFileURLProtocol didLoadData:]):
        * ProtocolHandlers.subproj/NSHTTPURLProtocol.m:
        * ProtocolHandlers.subproj/NSSimpleHTTPURLProtocol.h:
        * ProtocolHandlers.subproj/NSSimpleHTTPURLProtocol.m:
        (NSSimpleHTTPURLProtocolInit):
        (-[NSSimpleHTTPURLProtocol initWithRequest:cachedResponse:client:]):
        (-[NSSimpleHTTPURLProtocol startOriginLoad]):
        (-[NSSimpleHTTPURLProtocol hostNameResolved:]):
        (-[NSSimpleHTTPURLProtocol _handleLoadCallback]):
        * WebFoundation-base.exp:
        * WebFoundation.pbproj/project.pbxproj:

WebKit:

        Reviewed by David

	File and class renaming in WebFoundation:

	WebFileTypeMappings -> NSURLFileTypeMappings

        * WebCoreSupport.subproj/WebBridge.m:
        (-[WebBridge MIMETypeForPath:]):
        * WebCoreSupport.subproj/WebImageRendererFactory.m:
        (-[WebImageRendererFactory supportedMIMETypes]):
        * WebView.subproj/WebDataSource.m:
        * WebView.subproj/WebMainResourceClient.m:
        * WebView.subproj/WebViewPrivate.m:
        (+[WebView suggestedFileExtensionForMIMEType:]):
        (+[WebView _MIMETypeForFile:]):

WebBrowser:

        Reviewed by David

	File and class renaming done in WebFoundation:

	WebFileTypeMappings -> NSURLFileTypeMappings

        * BrowserWebController.m:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@4375 268f45cc-cd09-0410-ab3c-d52691b4dbfc
	Fix for 3248193.  Floats with layers paint twice.  The fix
	is to make sure floats are not painted during the float phase
	if they also have a layer.

        Reviewed by john

        * khtml/rendering/render_block.cpp:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@4376 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Tests:

        Reviewed by Chris

	Fixed one straggling test I missed earlier when
	changing name from WebMonitor to NSURLMonitor

        * WebFoundation-CacheLoader/NeverExpiresTest.m:

WebFoundation:

        Reviewed by Chris

	Cut way down on WebSystemBits. Kept only two thread-priority
	functions. The WebSystemBits header is no longer privately exported.

        * Misc.subproj/WebSystemBits.h:
        * Misc.subproj/WebSystemBits.m:
        (WebGetThreadPriority):
        * WebFoundation-base.exp:
        * WebFoundation.pbproj/project.pbxproj:

WebKit:

        Reviewed by Chris

        WebKitSystemBits files that contain a system memory size
        getter. This function is used in a few of places in WebKit.

        * History.subproj/WebBackForwardList.m:
        * Misc.subproj/WebKitSystemBits.h: Added.
        * Misc.subproj/WebKitSystemBits.m: Added.
        (initCapabilities):
        (WebSystemMainMemory):
        * WebCoreSupport.subproj/WebBridge.m:
        * WebCoreSupport.subproj/WebTextRendererFactory.m:
        * WebKit.pbproj/project.pbxproj:

WebBrowser:

        Reviewed by Chris

        Removed dependency on WebFoundation/WebSystemBits.h.
        Moved one function that was used into this file. This
	function, JaguarSUJagGreenOrLater(), has been tweaked
	to be more specialized for the one question it needs
	to answer.

        * FormCompletionController.m:
        (GetRandomBytes):
        (generatePassword):
        * LocationChangeError.m:
        (JaguarSUJagGreenOrLater):
        (-[LocationChangeHandler specializedMessageForError:dataSource:]):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@4377 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Tests:

        Reviewed by John

        Changed the names of some extras files in WebFoundation:
        Updated imports and usages in the tests.

	WebNSArrayExtras -> NSArray_NSURLExtras
	WebNSCalendarDateExtras -> NSCalendarDate_NSURLExtras
	WebNSObjectExtras -> NSObject_NSURLExtras
	WebNSStringExtras -> NSString_NSURLExtras
	WebNSURLExtras -> NSURL_NSURLExtras

        * WebFoundation-Misc/ifnsarrayextensions-test.m:
        * WebFoundation-Misc/ifnscalendardateextensions-test.m:
        * WebFoundation-Misc/ifnsobjectextensions-test.m:
        * WebFoundation-Misc/ifnsstringextensions-test.m:
        * WebFoundation-Misc/ifnsurlextensions-test.m:
        * WebFoundation-Misc/ifurlparsing-test.m:

WebFoundation:

        Reviewed by John

        Changed the names of some extras files:
        Updated imports and usages in this project.

	WebNSArrayExtras -> NSArray_NSURLExtras
	WebNSCalendarDateExtras -> NSCalendarDate_NSURLExtras
	WebNSDataExtras -> NSData_NSURLExtras
	WebNSDictionaryExtras -> NSDictionary_NSURLExtras
	WebNSErrorExtras -> NSError_NSURLExtras
	WebNSFileManagerExtras -> NSFileManager_NSURLExtras
	WebNSObjectExtras -> NSObject_NSURLExtras
	WebNSStringExtras -> NSString_NSURLExtras
	WebNSURLExtras -> NSURL_NSURLExtras
	WebNSUserDefaultsExtras -> NSUserDefaults_NSURLExtras
	WebNSValueExtensions -> NSValue_NSURLExtras

        * AuthenticationManager.subproj/NSHTTPAuthenticator.m:
        * AuthenticationManager.subproj/NSURLCredentialStorage.m:
        * AuthenticationManager.subproj/NSURLKeychainCredential.m:
        * AuthenticationManager.subproj/NSURLKeychainCredentialStorage.m:
        * CacheLoader.subproj/NSNetworkSettings.m:
        * CacheLoader.subproj/NSSynchronousURLConnectionDelegate.m:
        * CacheLoader.subproj/NSURLCache.m:
        * CacheLoader.subproj/NSURLConnection.m:
        * CacheLoader.subproj/NSURLConnectionQueue.m:
        * CacheLoader.subproj/NSURLProtocol.m:
        * CacheLoader.subproj/NSURLRequest.m:
        * CacheLoader.subproj/NSURLResponse.m:
        * ChangeLog:
        * CookieManager.subproj/NSHTTPCookie.m:
        * CookieManager.subproj/NSHTTPCookieDOStorage.m:
        * CookieManager.subproj/NSHTTPCookieServer.m:
        * CookieManager.subproj/NSHTTPCookieStorage.m:
        * Database.subproj/WebFileDatabase.m:
        * English.lproj/StringsNotToBeLocalized.txt:
        * FileTransfer.subproj/NSBinHexDecoder.m:
        * FileTransfer.subproj/NSMacBinaryDecoder.m:
        * FileTransfer.subproj/NSURLDownload.m:
        * Misc.subproj/NSArray_NSURLExtras.m:
        * Misc.subproj/NSCalendarDate_NSURLExtras.h:
        * Misc.subproj/NSCalendarDate_NSURLExtras.m:
        * Misc.subproj/NSData_NSURLExtras.h:
        * Misc.subproj/NSData_NSURLExtras.m:
        * Misc.subproj/NSDictionary_NSURLExtras.h:
        * Misc.subproj/NSDictionary_NSURLExtras.m:
        * Misc.subproj/NSError_NSURLExtras.h:
        * Misc.subproj/NSError_NSURLExtras.m:
        * Misc.subproj/NSFileManager_NSURLExtras.h:
        * Misc.subproj/NSFileManager_NSURLExtras.m:
        * Misc.subproj/NSObject_NSURLExtras.h:
        * Misc.subproj/NSObject_NSURLExtras.m:
        * Misc.subproj/NSString_NSURLExtras.h:
        * Misc.subproj/NSString_NSURLExtras.m:
        * Misc.subproj/NSURL_NSURLExtras.h:
        * Misc.subproj/NSURL_NSURLExtras.m:
        * Misc.subproj/NSUserDefaults_NSURLExtras.h:
        * Misc.subproj/NSUserDefaults_NSURLExtras.m:
        * Misc.subproj/NSValue_NSURLExtras.h:
        * Misc.subproj/NSValue_NSURLExtras.m:
        * Misc.subproj/WebNSArrayExtras.h: Removed.
        * Misc.subproj/WebNSArrayExtras.m: Removed.
        * Misc.subproj/WebNSCalendarDateExtras.h: Removed.
        * Misc.subproj/WebNSCalendarDateExtras.m: Removed.
        * Misc.subproj/WebNSDataExtras.h: Removed.
        * Misc.subproj/WebNSDataExtras.m: Removed.
        * Misc.subproj/WebNSDictionaryExtras.h: Removed.
        * Misc.subproj/WebNSDictionaryExtras.m: Removed.
        * Misc.subproj/WebNSErrorExtras.h: Removed.
        * Misc.subproj/WebNSErrorExtras.m: Removed.
        * Misc.subproj/WebNSFileManagerExtras.h: Removed.
        * Misc.subproj/WebNSFileManagerExtras.m: Removed.
        * Misc.subproj/WebNSObjectExtras.h: Removed.
        * Misc.subproj/WebNSObjectExtras.m: Removed.
        * Misc.subproj/WebNSStringExtras.h: Removed.
        * Misc.subproj/WebNSStringExtras.m: Removed.
        * Misc.subproj/WebNSURLExtras.h: Removed.
        * Misc.subproj/WebNSURLExtras.m: Removed.
        * Misc.subproj/WebNSUserDefaultsExtras.h: Removed.
        * Misc.subproj/WebNSUserDefaultsExtras.m: Removed.
        * Misc.subproj/WebNSValueExtensions.h: Removed.
        * Misc.subproj/WebNSValueExtensions.m: Removed.
        * ProtocolHandlers.subproj/NSAboutURLProtocol.m:
        * ProtocolHandlers.subproj/NSCFNetworkHTTPURLProtocol.m:
        * ProtocolHandlers.subproj/NSFTPURLProtocol.m:
        * ProtocolHandlers.subproj/NSFileURLProtocol.m:
        * ProtocolHandlers.subproj/NSHTTPURLProtocol.m:
        * ProtocolHandlers.subproj/NSSimpleHTTPURLProtocol.m:
        * WebFoundation-base.exp:
        * WebFoundation.pbproj/project.pbxproj:

WebKit:

        Reviewed by John

        Changed the names of some extras files in WebFoundation:
        Updated imports and usages in this project.

	WebNSCalendarDateExtras -> NSCalendarDate_NSURLExtras
	WebNSDataExtras -> NSData_NSURLExtras
	WebNSDictionaryExtras -> NSDictionary_NSURLExtras
	WebNSErrorExtras -> NSError_NSURLExtras
	WebNSFileManagerExtras -> NSFileManager_NSURLExtras
	WebNSObjectExtras -> NSObject_NSURLExtras
	WebNSStringExtras -> NSString_NSURLExtras
	WebNSURLExtras -> NSURL_NSURLExtras
	WebNSUserDefaultsExtras -> NSUserDefaults_NSURLExtras

        * History.subproj/WebHistory.m:
        * History.subproj/WebHistoryItem.m:
        * History.subproj/WebHistoryPrivate.m:
        * History.subproj/WebURLsWithTitles.m:
        * Misc.subproj/WebIconDatabase.m:
        * Misc.subproj/WebIconLoader.m:
        * Misc.subproj/WebKitErrors.m:
        * Misc.subproj/WebNSPasteboardExtras.m:
        * Misc.subproj/WebNSViewExtras.m:
        * Panels.subproj/WebAuthenticationPanel.m:
        * Panels.subproj/WebPanelAuthenticationHandler.m:
        * Plugins.subproj/WebBaseNetscapePluginStream.m:
        * Plugins.subproj/WebBaseNetscapePluginView.m:
        * Plugins.subproj/WebNetscapePluginRepresentation.m:
        * Plugins.subproj/WebNullPluginView.m:
        * WebCoreSupport.subproj/WebBridge.m:
        * WebCoreSupport.subproj/WebCookieAdapter.m:
        * WebCoreSupport.subproj/WebSubresourceClient.m:
        * WebView.subproj/WebBaseResourceHandleDelegate.m:
        * WebView.subproj/WebDataProtocol.m:
        * WebView.subproj/WebDataSource.m:
        * WebView.subproj/WebDataSourcePrivate.m:
        * WebView.subproj/WebDefaultResourceLoadDelegate.m:
        * WebView.subproj/WebFrame.m:
        * WebView.subproj/WebFramePrivate.m:
        * WebView.subproj/WebFrameView.m:
        * WebView.subproj/WebFrameViewPrivate.m:
        * WebView.subproj/WebHTMLViewPrivate.m:
        * WebView.subproj/WebMainResourceClient.m:
        * WebView.subproj/WebPreferences.m:
        * WebView.subproj/WebView.m:
        * WebView.subproj/WebViewPrivate.m:

WebBrowser:

        Reviewed by John

	Changed the names of some extras files in WebFoundation:
	Updated imports and usages in this project.

	WebNSCalendarDateExtras -> NSCalendarDate_NSURLExtras
	WebNSDictionaryExtras -> NSDictionary_NSURLExtras
	WebNSErrorExtras -> NSError_NSURLExtras
	WebNSFileManagerExtras -> NSFileManager_NSURLExtras
	WebNSStringExtras -> NSString_NSURLExtras
	WebNSURLExtras -> NSURL_NSURLExtras
	WebNSUserDefaultsExtras -> NSUserDefaults_NSURLExtras

        * AppController.m:
        (-[AppController settingsDirectoryPath]):
        * BookmarkSource.m:
        * BookmarksViewController.m:
        * BrowserDocument.m:
        * BrowserDocumentController.m:
        * BrowserNSBundleExtras.m:
        * BrowserNSErrorExtras.m:
        * BrowserNSNetServiceExtras.m:
        * BrowserNSStringExtras.m:
        * BrowserNSURLExtras.m:
        * BrowserWebBookmarkExtras.m:
        * BrowserWebController.m:
        * BrowserWindowController.m:
        * BugReportController.m:
        * ChangeLog:
        * ContextMenuHandler.m:
        * Debug/DebugUtilities.m:
        * DownloadMonitor.m:
        * DownloadProgressEntry.m:
        * DownloadRow.m:
        * FormCompletionController.m:
        * FrameProgressEntry.m:
        * GlobalHistory.m:
        * GoogleSearchChannel.m:
        * LoadProgressMonitor.m:
        * LocationChangeError.m:
        * LocationChangeHandler.m:
        * LocationFieldEditor.m:
        * NewBookmarksController.m:
        * Preferences.subproj/AdvancedPreferences.m:
        * Preferences.subproj/DefaultBrowserController.m:
        * Preferences.subproj/WBPreferences.m:
        * RendezvousController.m:
        * ResourceProgressEntry.m:
        * SlidingAnimation.m:
        * SpinningProgressIndicator.m:
        * TabBarView.m:
        * Test/PageLoadTestController.m:
        * Test/PageLoadTestRunner.m:
        * TitleBarButton.m:
        * URLCompletionController.m:
        (visitCountForResult):
        * WebBookmarkImporter.m:
        * WebBookmarkLeaf.m:
        * main.m:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@4378 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Tools:

        Reviewed by John

	Tweaked script so that it works with the changed names
	of some dependent files and macors in WebFoundation.

        * Scripts/extract-localizable-strings:

WebFoundation:

        Reviewed by John

        Updated StringsNotToBeLocalized.txt for recent changes.

	Changed localization macros back to UI_STRING and UI_STRING_KEY so
	that we keep working with the tools we have to keep
	localization information up to date.

        * AuthenticationManager.subproj/NSURLKeychainCredentialStorage.m:
        (-[NSURLKeychainCredentialStorage _saveCredential:forProtectionSpace:isDefault:]):
        * CacheLoader.subproj/NSURLResponse.m:
        (+[NSHTTPURLResponse localizedStringForStatusCode:]):
        * English.lproj/StringsNotToBeLocalized.txt:
        * Misc.subproj/NSError_NSURLExtras.m:
        (WebNSErrorExtrasInit):
        * Misc.subproj/NSString_NSURLExtras.m:
        * Misc.subproj/NSURLAssertions.h:
        * Misc.subproj/NSURLAssertions.m:
        (NSURLReportFatalError):
        * Misc.subproj/NSURLLocalizableStrings.h:
        * Misc.subproj/NSURL_NSURLExtras.m:
        (-[NSURL _web_suggestedFilenameWithMIMEType:]):

WebKit:

        Reviewed by John

	Updated for recent changes.

        * English.lproj/StringsNotToBeLocalized.txt:

WebBrowser:

        Reviewed by John

	Updated for recent changes.

        * English.lproj/StringsNotToBeLocalized.txt:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@4379 268f45cc-cd09-0410-ab3c-d52691b4dbfc
        Reviewed by Chris.

	- fixed 3259673 - REGRESSION: marvel.com thinks I don't have the flash plugin any more

        * kjs/nodes.cpp:
        (ContinueNode::execute): Return a Continue completion, not a Break
	completion, in the normal non-exception case.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@4380 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Safari-79 stamp


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@4381 268f45cc-cd09-0410-ab3c-d52691b4dbfc
build number 80u


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@4383 268f45cc-cd09-0410-ab3c-d52691b4dbfc
	Fixed: 3155760 - Plug-in MIME and extension mapping should be case-insensitive

        Reviewed by john.

        * Plugins.subproj/WebBasePluginPackage.m:
        (-[WebBasePluginPackage getPluginInfoFromBundleAndMIMEDictionary:]): store the extensions and MIMEs as lowercase strings
        (-[NSArray _web_lowercaseStrings]): new, returns array of lowercase strings
        * Plugins.subproj/WebNetscapePluginPackage.m:
        (-[WebNetscapePluginPackage getPluginInfoFromResources]): store the extensions and MIMEs as lowercase strings
        * Plugins.subproj/WebPluginDatabase.m:
        (-[WebPluginDatabase pluginForMIMEType:]): lowercase the passed MIME type
        (-[WebPluginDatabase pluginForExtension:]): lowercase the passed extension


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@4384 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebFoundation:

		Fixed: ASSERT if delegate doesn't implement didReceiveResponse

        Reviewed by kocienda.

        * CacheLoader.subproj/NSURLConnection.m:
        (-[NSURLConnection _postDidReceiveResponseCallback]): set didReceiveResponseCallbackSent to YES here
        (-[NSURLConnection _sendDidReceiveResponseCallback]): don't set didReceiveResponseCallbackSent to YES here because this method may not be called

WebKit:

		Fixed: 3199310 - No user agent included in favicon.ico requests

        Reviewed by kocienda.

        * Misc.subproj/WebIconLoader.h:
        * Misc.subproj/WebIconLoader.m:
        (-[WebIconLoaderPrivate dealloc]): use the request ivar
        (-[WebIconLoader URL]): ditto
        (-[WebIconLoader startLoading]): ditto
        (-[WebIconLoader connection:didReceiveData:]): ditto
        (-[WebIconLoader connectionDidFinishLoading:]): ditto
        * WebView.subproj/WebDataSourcePrivate.m:
        (-[WebDataSource _loadIcon]): create a icon loader with a request with the extra fields set


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@4385 268f45cc-cd09-0410-ab3c-d52691b4dbfc
        Reviewed by Richard.

	- fixed 3168588 - Can't click on links at Nike site (Image onload handler problem)

	The fix was to implement the onload property for Image objects
	(which are entirely different from <img> HTML elements).

        * khtml/ecma/kjs_html.cpp:
        (Image::getValueProperty): Implement access to onload attribte.
        (Image::tryPut): Use putValue cause we're gonna use the hashtable now.
        (Image::putValue): Moved guts of tryPut here. Implement setting of
	onload attribute.
        (Image::notifyFinished): Fire onload event if there is a listener.
        (Image::Image): initialize onload listener to null.
        * khtml/ecma/kjs_html.h:
        * khtml/ecma/kjs_html.lut.h: Regenerated.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@4386 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebFoundation:

        Reviewed by Gramps

	Moved WebDatabase and WebFileDatabase files to WebKit

	Twiddled some logging constants now that the WebFileDatabase
	has been removed from the framework.

	Updated StringsNotToBeLocalized.txt.

        * Database.subproj/NSLRUFileList.m:
        (NSLRUFileListRemoveOldestFileFromList):
        * Database.subproj/WebDatabase.h: Removed.
        * Database.subproj/WebDatabase.m: Removed.
        * Database.subproj/WebFileDatabase.h: Removed.
        * Database.subproj/WebFileDatabase.m: Removed.
        * English.lproj/StringsNotToBeLocalized.txt:
        * Misc.subproj/NSURLLogging.h:
        * Misc.subproj/NSURLLogging.m:
        * WebFoundation.pbproj/project.pbxproj:

WebKit:

        Reviewed by Gramps

	Moved in WebDatabase and WebFileDatabase files from WebFoundation.

	Copied NSLRUFileList from WebFoundation and renamed to WebLRUFileList.

	Updated StringsNotToBeLocalized.txt.

        * English.lproj/StringsNotToBeLocalized.txt:
        * Misc.subproj/WebDatabase.h:
        * Misc.subproj/WebDatabase.m:
        * Misc.subproj/WebFileDatabase.h:
        * Misc.subproj/WebFileDatabase.m:
        (-[WebFileDatabaseOp initWithCode:key:object:]):
        (-[WebFileDatabaseOp perform:]):
        (SetThreadPriority):
        (-[WebFileDatabase _createLRUList:]):
        (-[WebFileDatabase _truncateToSizeLimit:]):
        (+[WebFileDatabase _syncLoop:]):
        (-[WebFileDatabase setObject:forKey:]):
        (-[WebFileDatabase removeObjectForKey:]):
        (-[WebFileDatabase removeAllObjects]):
        (-[WebFileDatabase objectForKey:]):
        (-[WebFileDatabase performSetObject:forKey:]):
        (-[WebFileDatabase performRemoveObjectForKey:]):
        (-[WebFileDatabase close]):
        (-[WebFileDatabase lazySync:]):
        (-[WebFileDatabase sync]):
        (-[WebFileDatabase count]):
        (-[WebFileDatabase usage]):
        * Misc.subproj/WebIconDatabase.m:
        * Misc.subproj/WebKitLogging.h:
        * Misc.subproj/WebKitLogging.m:
        * Misc.subproj/WebLRUFileList.h: Added.
        * Misc.subproj/WebLRUFileList.m: Added.
        (WebLRUFileListCreate):
        (WebLRUFileListRelease):
        (WebLRUFileListRebuildFileDataUsingRootDirectory):
        (WebLRUFileListRemoveFileWithPath):
        (WebLRUFileListTouchFileWithPath):
        (WebLRUFileListSetFileData):
        (WebLRUFileListGetPathOfOldestFile):
        (WebLRUFileListRemoveOldestFileFromList):
        (WebLRUFileListContainsItem):
        (WebLRUFileListGetFileSize):
        (WebLRUFileListCountItems):
        (WebLRUFileListGetTotalSize):
        (WebLRUFileListRemoveAllFilesFromList):
        (compareTimes):
        (cStringEqual):
        (cStringHash):
        (NSLRUFileDataEqual):
        (WebLRUFileListGetOldestFileData):
        (NSLRUFileDataReleaseApplierFunction):
        (NSLRUFileDataRelease):
        (NSLRUFileDataBinaryHeapDumpApplierFunction):
        (NSLRUFileDataDictDumpApplierFunction):
        (WebLRUFileListDescription):
        * WebKit.pbproj/project.pbxproj:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@4387 268f45cc-cd09-0410-ab3c-d52691b4dbfc
        Reviewed by Ken.

	- fixed 3256997 - reproducible world leak (of 1 JavaScript interpreter) using google images

	This turned out to be a page cache bug, and nothing to do with
	JavaScript. The part and view were also leaked.

        * kwq/KWQKHTMLPart.mm:
        (KWQKHTMLPart::openURLFromPageCache): Make sure to reset the view
	before resetting the document, so that when we check if the
	document is in the page cache to determine if we can delete the
	old view, we'll be checking the old document instead of the new
	one.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@4388 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebFoundation:

        Reviewed by John.

	- fixed 3255088 - repro crash in WebCredentialStorage remembering password from onlinetrafficsafety.com

        * AuthenticationManager.subproj/NSURLKeychainCredentialStorage.m:
        (-[NSURLKeychainCredentialStorage _secProtocolForProtectionSpace:]): Don't assert if the protocol
	is unknown, just return 0 and let the higher levels fail gracefully.
        (-[NSURLKeychainCredentialStorage _saveCredential:forProtectionSpace:isDefault:]): Don't save
	if the protocol is unknown. Tolerate nil host.
        * AuthenticationManager.subproj/NSURLProtectionSpace.m:
        (-[NSURLProtectionSpace initWithHost:port:protocol:realm:authenticationMethod:]):

	- unrelated cookie code cleanup

	* CookieManager.subproj/NSHTTPCookieStorage.m:
        (-[NSHTTPCookieStorage _setCookies:forURL:policyBaseURL:]): Avoid
	warning about "0 previous cookies rejected"

WebKit:

        Reviewed by John.

	- fixed 3255088 - repro crash in WebCredentialStorage remembering password from onlinetrafficsafety.com

        * WebView.subproj/WebFormDelegate.h:
        * WebView.subproj/WebFormDelegate.m:
        (-[WebFormDelegate frame:sourceFrame:willSubmitForm:withValues:submissionListener:]): Expect sourceFrame
	argument.
        * WebView.subproj/WebFramePrivate.m:
        (-[WebFrame _loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]): Include
	source frame in form state.
        (-[WebFrame _postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
	Include source frame in form state. Post directly to the target
	frame if it exists, since we want the form state to contain the
	right source frame.
        (-[WebFrame _continueLoadRequestAfterNavigationPolicy:formState:]): Pass source frame to form
	delegate.
	(-[WebFormState initWithForm:values:sourceFrame:]): New sourceFrame argument.
        (-[WebFormState dealloc]): release sourceFrame.
        (-[WebFormState sourceFrame]): New method.

WebBrowser:

        Reviewed by John.

	- fixed 3255088 - repro crash in WebCredentialStorage remembering password from onlinetrafficsafety.com

        * BrowserWebController.m:
        (-[FormDelegate frame:sourceFrame:willSubmitForm:withValues:submissionListener:]): Expect sourceFrame.
        * FormCompletionController.h:
        * FormCompletionController.m:
        (+[FormCompletionController _frame:sourceFrame:willSubmitLoginForm:withValues:formInfo:submissionListener:]): Pop up sheet based on source frame's window, and raise the sheet-bearing window if different than the target window.
        (+[FormCompletionController _frame:sourceFrame:willSubmitRegularForm:withValues:]): Expect and use sourceFrame.
        (+[FormCompletionController frame:sourceFrame:willSubmitForm:withValues:submissionListener:]): Expect sourceFrame.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@4389 268f45cc-cd09-0410-ab3c-d52691b4dbfc
        Reviewed by Richard.

	- fixed 3260940 - REGRESSION: reproducible crash freeing page cache item
	- fixed 3241041 - REGRESSION: repro world leak of 1 JavaScript interpreter

	The fix for these problems and probably other page cache wackiness
	was to use a refcounting scheme for KHTMLView instead of counting
	on the previous tricky ownership rules.

        * khtml/khtmlview.cpp:
        (KHTMLView::KHTMLView): Initialize _refCount to 1.
        (KHTMLView::~KHTMLView): Assert that _refCount is 0, to make sure no one is deleting
	views explicitly.
        * khtml/khtmlview.h:
        * khtml/rendering/render_frames.cpp:
        (RenderPart::~RenderPart): If our view is a KHTMLView, deref it.
        (RenderPart::setWidget): If the view is a KHTMLView, tell the superclass not to
	delete it and ref it.
        * khtml/rendering/render_frames.h:
        * khtml/rendering/render_replaced.cpp:
        (RenderWidget::RenderWidget): Initizlize m_deleteWidget to false.
        (RenderWidget::~RenderWidget): Only delete widget if we're supposed to.
        (RenderWidget::setQWidget): Add extra delegeWidget argument that says whether
	to delete this widget when done - defaults to true.
        * khtml/rendering/render_replaced.h:
        * kwq/KWQKHTMLPart.h:
        * kwq/KWQKHTMLPart.mm:
        (KWQKHTMLPart::KWQKHTMLPart): Removed _ownsView boolean -- we'll always hang on
	to a ref to it now.
        (KWQKHTMLPart::~KWQKHTMLPart): Deref the view always instead of deleting it sometimes.
        (KWQKHTMLPart::setView): deref the old view if not null. ref the new view if not null.
	Drop tricky ownership rules.
        (KWQKHTMLPart::openURLFromPageCache): Remove no longer applicable comment about the
	importance of when setView is called.
        * kwq/KWQPageState.mm:
        (-[KWQPageState initWithDocument:URL:windowProperties:locationProperties:]): ref the
	document's view.
        (-[KWQPageState invalidate]): deref the document's view.
        (-[KWQPageState dealloc]): deref the document's view instead of deleting it.
        * kwq/WebCoreBridge.mm:
        (-[WebCoreBridge createKHTMLViewWithNSView:marginWidth:marginHeight:]): No more need
	to pass weOwnIt argument to setView. Also, deref the view after passing it to the
	KWQKHTMLView -- we own the initial ref since we allocated it.
        (-[WebCoreBridge removeFromFrame]): No more need to pass weOwnIt argument to setView.
        (-[WebCoreBridge installInFrame:]): Ditto.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@4390 268f45cc-cd09-0410-ab3c-d52691b4dbfc
        Reviewed by Ken.

	- fixed 3254063 - REGRESSION: hang in KJS PropertyMap with many items in iDisk pictures folder

        * kjs/property_map.cpp:
	(PropertyMap::expand): Fixed to maintain key count properly - otherwise the hashtable
	could get completely full, resulting in disaster.
	(PropertyMap::checkConsistency): Fixed compilation. Fixed to know about deleted
	sentinel. Fixed to search with double-hashing instead of linear probing.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@4391 268f45cc-cd09-0410-ab3c-d52691b4dbfc
        Reviewed by Darin

	Fixed build problem with declaring MIMEType as a category
	on NSObject. This method needs to be typed to return NSString.

        * kwq/KWQLoader.mm


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@4392 268f45cc-cd09-0410-ab3c-d52691b4dbfc
top level:

        Reviewed by Darin

	Changes to move from WebFoundation to Foundation

        * Makefile.am: Add some targets to check out and build Foundation.
        * configure.in: Add some more command line options to support
	building Foundation.
        * make-Foundation.sh.in: Added. Helper script to build Foundation.

Tests:

        Reviewed by Darin

	Changed imports to include headers from Foundation
	instead of WebFoundation.

	Removed WebFoundation.framework as a dependency in
	the project files.

	Updated some test files to use Foundation-related names
	instead of WebFoundation-related names.

	No longer build WebFoundation-CacheLoader subdirectory.
	This test has not worked in a very long time. No need
	to keep up the ruse as long as the test does not work.

        * PDFViewer/DocumentController.m:
        * PDFViewer/PDFViewer.pbproj/project.pbxproj:
        * SimpleViewer/DocumentController.m:
        * SimpleViewer/SimpleViewer.pbproj/project.pbxproj:
        * SnippetEditor/SnippetController.m:
        * SnippetEditor/SnippetEditor.pbproj/project.pbxproj:
        * WebFoundation-CacheLoader/NeverExpiresTest.m:
        (-[NeverExpiresTest setUp]):
        * WebFoundation-Misc/Makefile.am:

WebKit:

        Reviewed by Darin

        Changed imports to include headers from Foundation
        instead of WebFoundation.

        Removed WebFoundation.framework as a dependency in
        the project file.

        * History.subproj/WebHistory.m:
        * History.subproj/WebHistoryItem.m:
        * History.subproj/WebHistoryPrivate.m:
        * History.subproj/WebURLsWithTitles.m:
        * Misc.subproj/WebDownload.h:
        * Misc.subproj/WebDownload.m:
        * Misc.subproj/WebFileDatabase.m:
        * Misc.subproj/WebIconDatabase.m:
        * Misc.subproj/WebIconLoader.m:
        * Misc.subproj/WebKitErrors.m:
        * Misc.subproj/WebKitErrorsPrivate.h:
        * Misc.subproj/WebNSPasteboardExtras.m:
        * Misc.subproj/WebNSViewExtras.m:
        * Panels.subproj/WebAuthenticationPanel.h:
        * Panels.subproj/WebAuthenticationPanel.m:
        * Panels.subproj/WebPanelAuthenticationHandler.h:
        * Panels.subproj/WebPanelAuthenticationHandler.m:
        * Plugins.subproj/WebBaseNetscapePluginStream.m:
        * Plugins.subproj/WebBaseNetscapePluginView.m:
        * Plugins.subproj/WebNetscapePluginDocumentView.m:
        * Plugins.subproj/WebNetscapePluginEmbeddedView.m:
        * Plugins.subproj/WebNetscapePluginRepresentation.m:
        * Plugins.subproj/WebNetscapePluginStream.m:
        * Plugins.subproj/WebNullPluginView.m:
        * Plugins.subproj/WebPluginController.m:
        * WebCoreSupport.subproj/WebBridge.m:
        * WebCoreSupport.subproj/WebCookieAdapter.m:
        * WebCoreSupport.subproj/WebImageRendererFactory.m:
        * WebCoreSupport.subproj/WebSubresourceClient.m:
        * WebKit.pbproj/project.pbxproj:
        * WebView.subproj/WebBaseResourceHandleDelegate.m:
        * WebView.subproj/WebDataProtocol.h:
        * WebView.subproj/WebDataProtocol.m:
        * WebView.subproj/WebDataSource.m:
        * WebView.subproj/WebDataSourcePrivate.m:
        * WebView.subproj/WebDefaultContextMenuDelegate.m:
        * WebView.subproj/WebDefaultFrameLoadDelegate.m:
        * WebView.subproj/WebDefaultPolicyDelegate.m:
        * WebView.subproj/WebDefaultResourceLoadDelegate.m:
        * WebView.subproj/WebDefaultUIDelegate.m:
        * WebView.subproj/WebFrame.m:
        * WebView.subproj/WebFramePrivate.m:
        * WebView.subproj/WebFrameView.m:
        * WebView.subproj/WebFrameViewPrivate.m:
        * WebView.subproj/WebHTMLRepresentation.m:
        * WebView.subproj/WebHTMLViewPrivate.m:
        * WebView.subproj/WebImageRepresentation.m:
        * WebView.subproj/WebMainResourceClient.m:
        * WebView.subproj/WebPreferences.m:
        * WebView.subproj/WebTextRepresentation.m:
        * WebView.subproj/WebTextView.m:
        * WebView.subproj/WebUIDelegate.h:
        * WebView.subproj/WebView.m:
        * WebView.subproj/WebViewPrivate.m:

WebBrowser:

        Reviewed by Darin

        Changed imports to include headers from Foundation
        instead of WebFoundation.

        Removed WebFoundation.framework as a dependency in
        the project file.

        * AppController.m:
        * BookmarkSource.m:
        * BookmarksViewController.m:
        * BrowserDocument.h:
        * BrowserDocument.m:
        * BrowserDocumentController.m:
        * BrowserNSBundleExtras.m:
        * BrowserNSErrorExtras.h:
        * BrowserNSErrorExtras.m:
        * BrowserNSNetServiceExtras.m:
        * BrowserNSStringExtras.m:
        * BrowserNSURLExtras.m:
        * BrowserWebBookmarkExtras.m:
        * BrowserWebController.m:
        * BrowserWindowController.m:
        * BugReportController.m:
        * ContextMenuHandler.m:
        * Debug/CacheController.m:
        * Debug/DebugUtilities.m:
        * Debug/SnippetController.m:
        * DownloadMonitor.m:
        * DownloadProgressEntry.m:
        * DownloadRow.m:
        * FormCompletionController.m:
        * FrameProgressEntry.m:
        * GlobalHistory.m:
        * GoogleSearchChannel.m:
        * HTMLSourceDocument.m:
        * LoadProgressMonitor.m:
        * LocationChangeError.m:
        * LocationChangeHandler.m:
        * LocationFieldEditor.m:
        * NewBookmarksController.m:
        * Preferences.subproj/AcceptedCookies.m:
        * Preferences.subproj/AdvancedPreferences.m:
        * Preferences.subproj/DefaultBrowserController.m:
        * Preferences.subproj/PasswordsEditor.m:
        * Preferences.subproj/SecurityPreferences.m:
        * Preferences.subproj/WBPreferences.m:
        * RendezvousController.m:
        * ResourceProgressEntry.m:
        * SlidingAnimation.m:
        * SpinningProgressIndicator.m:
        * TabBarView.m:
        * Test/PageLoadTestController.m:
        * Test/PageLoadTestRunner.m:
        * TitleBarButton.m:
        * URLCompletionController.m:
        * WebBookmarkImporter.m:
        * WebBookmarkLeaf.m:
        * main.m:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@4393 268f45cc-cd09-0410-ab3c-d52691b4dbfc