1. 05 Jun, 2005 3 commits
    • darin's avatar
      - added appropriate license headers to most files and updated... · 123ff8e8
      darin authored
              - added appropriate license headers to most files and updated copyright to reflect publication dates
      
              * LICENSE: Added.
              * <lots of files>: Added license header.
      
              * WebKit.pbproj/project.pbxproj: Removed references to NP_objc.h.
      
              * API-Issues.rtf: Removed.
              * Misc.subproj/WebException.h: Removed.
              * Misc.subproj/WebException.m: Removed.
              * Plugins.subproj/NP_objc.h: Removed.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@9276 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      123ff8e8
    • mjs's avatar
      Reviewed by Hyatt. · 643a6acb
      mjs authored
      	- link against libWebKitSystemInterface and use the first function in it.
      
              * Misc.subproj/WebNSUserDefaultsExtras.m:
              (-[NSString _webkit_HTTPStyleLanguageCode]): use WKCopyCFLocalizationPreferredName
              * Plugins.subproj/WebBasePluginPackage.m:
              (+[WebBasePluginPackage preferredLocalizationName]): ditto
              * WebKit.pbproj/project.pbxproj: link in libWebKitSystemInterface.a and find headers.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@9275 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      643a6acb
    • darin's avatar
      WebCore: · ada54ac4
      darin authored
              Reviewed by Don.
      
              - got rid of the rest of the dependencies on Apple Internal headers
      
              * kwq/WebCoreBridge.mm: Remove include of unused SPI header.
      
              * kwq/KWQAccObjectCache.h: Remove include of SPI header. Change use of AXTextMarkerRef to
              use WebCoreTextMarker instead. Also ifdef less.
              * kwq/KWQAccObjectCache.mm:
              (KWQAccObjectCache::textMarkerForVisiblePosition): Change types, call new WebCoreViewFactory methods.
              (KWQAccObjectCache::visiblePositionForTextMarker): Ditto.
              (KWQAccObjectCache::handleFocusedUIElementChanged): Ditto.
      
              * kwq/WebCoreViewFactory.h: Add new methods we can use instead of Accessibility SPI.
      
              * kwq/KWQAccObject.mm:
              (-[KWQAccObject detach]): Call new WebCoreViewFactory method instead of SPI.
              (-[KWQAccObject accessibilityAttributeNames]): Use strings instead of constants only in SPI header.
              (-[KWQAccObject textMarkerRangeFromMarkers:andEndMarker:]): Change parameter types from SPI type to
              a new type defined by WebCoreViewFactory, use WebCoreViewFactory method.
              (-[KWQAccObject textMarkerForVisiblePosition:]): Ditto.
              (-[KWQAccObject visiblePositionForTextMarker:]): Ditto.
              (-[KWQAccObject visiblePositionForStartOfTextMarkerRange:]): Ditto.
              (-[KWQAccObject visiblePositionForEndOfTextMarkerRange:]): Ditto.
              (-[KWQAccObject textMarkerRangeFromVisiblePositions:andEndPos:]): Just change type.
              (-[KWQAccObject textMarkerRange]): Ditto.
              (-[KWQAccObject accessibilityAttributeValue:]): String instead of constant.
              (-[KWQAccObject accessibilityParameterizedAttributeNames]): Ditto.
              (-[KWQAccObject doAXUIElementForTextMarker:]): Just change type.
              (-[KWQAccObject doAXLineForTextMarker:]): Ditto.
              (-[KWQAccObject doAXStringForTextMarkerRange:]): Ditto.
              (-[KWQAccObject doAXBoundsForTextMarkerRange:]): Ditto.
              (AXAttributeStringSetElement): Call new method.
              (-[KWQAccObject doAXAttributedStringForTextMarkerRange:]): Just change type.
              (-[KWQAccObject doAXTextMarkerRangeForUnorderedTextMarkers:]): Ditto.
              (-[KWQAccObject doAXNextTextMarkerForTextMarker:]): Ditto.
              (-[KWQAccObject doAXPreviousTextMarkerForTextMarker:]): Ditto.
              (-[KWQAccObject doAXLeftWordTextMarkerRangeForTextMarker:]): Ditto.
              (-[KWQAccObject doAXRightWordTextMarkerRangeForTextMarker:]): Ditto.
              (-[KWQAccObject doAXLeftLineTextMarkerRangeForTextMarker:]): Ditto.
              (-[KWQAccObject doAXRightLineTextMarkerRangeForTextMarker:]): Ditto.
              (-[KWQAccObject doAXSentenceTextMarkerRangeForTextMarker:]): Ditto.
              (-[KWQAccObject doAXParagraphTextMarkerRangeForTextMarker:]): Ditto.
              (-[KWQAccObject doAXNextWordEndTextMarkerForTextMarker:]): Ditto.
              (-[KWQAccObject doAXPreviousWordStartTextMarkerForTextMarker:]): Ditto.
              (-[KWQAccObject doAXNextLineEndTextMarkerForTextMarker:]): Ditto.
              (-[KWQAccObject doAXPreviousLineStartTextMarkerForTextMarker:]): Ditto.
              (-[KWQAccObject doAXNextSentenceEndTextMarkerForTextMarker:]): Ditto.
              (-[KWQAccObject doAXPreviousSentenceStartTextMarkerForTextMarker:]): Ditto.
              (-[KWQAccObject doAXNextParagraphEndTextMarkerForTextMarker:]): Ditto.
              (-[KWQAccObject doAXPreviousParagraphStartTextMarkerForTextMarker:]): Ditto.
              (-[KWQAccObject doAXLengthForTextMarkerRange:]): Ditto.
              (-[KWQAccObject accessibilityAttributeValue:forParameter:]): Change types, use new methods, use strings
              instead of constants.
              (-[KWQAccObject accessibilityIsAttributeSettable:]): String instead of constant.
              (-[KWQAccObject doSetAXSelectedTextMarkerRange:]): New type.
              (-[KWQAccObject accessibilitySetValue:forAttribute:]): New types, methods.
      
      WebKit:
      
              Reviewed by Don.
      
              - did some work to move SPI use from WebCore here (to be moved from here into WebKitSystemInterface)
              - fixed so we can compile ICU includes without Apple Internal headers installed
      
              * WebCoreSupport.subproj/WebViewFactory.m:
              (-[WebViewFactory objectIsTextMarker:]): Added.
              (-[WebViewFactory objectIsTextMarkerRange:]): Added.
              (-[WebViewFactory textMarkerWithBytes:length:]): Added.
              (-[WebViewFactory getBytes:fromTextMarker:length:]): Added.
              (-[WebViewFactory textMarkerRangeWithStart:end:]): Added.
              (-[WebViewFactory startOfTextMarkerRange:]): Added.
              (-[WebViewFactory endOfTextMarkerRange:]): Added.
              (-[WebViewFactory accessibilityHandleFocusChanged]): Added.
              (-[WebViewFactory AXUIElementForElement:]): Added.
              (-[WebViewFactory unregisterUniqueIdForUIElement:]): Added.
      
              * WebKit.pbproj/project.pbxproj: Added icu to the header search files.
              Removed bogus DSTROOT thing from the framework paths (I meant to remove that a while back).
      
              * icu/README: Added.
              * icu/unicode/parseerr.h: Added.
              * icu/unicode/platform.h: Added.
              * icu/unicode/uchar.h: Added.
              * icu/unicode/uconfig.h: Added.
              * icu/unicode/uidna.h: Added.
              * icu/unicode/uiter.h: Added.
              * icu/unicode/umachine.h: Added.
              * icu/unicode/unorm.h: Added.
              * icu/unicode/urename.h: Added.
              * icu/unicode/uscript.h: Added.
              * icu/unicode/utf.h: Added.
              * icu/unicode/utf16.h: Added.
              * icu/unicode/utf8.h: Added.
              * icu/unicode/utf_old.h: Added.
              * icu/unicode/utypes.h: Added.
              * icu/unicode/uversion.h: Added.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@9274 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ada54ac4
  2. 04 Jun, 2005 4 commits
    • darin's avatar
      Fix silly ChangeLog typo. · 3e1dc5ab
      darin authored
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@9273 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3e1dc5ab
    • darin's avatar
      Reviewed by Maciej. · aede77e8
      darin authored
              - first fix on the road to can compile without Apple Internal headers installed
      
              * WebCore.pbproj/project.pbxproj: Added icu directory to header search path.
      
              * icu/README: Added.
              * icu/unicode/parseerr.h: Added.
              * icu/unicode/platform.h: Added.
              * icu/unicode/putil.h: Added.
              * icu/unicode/ubrk.h: Added.
              * icu/unicode/uchar.h: Added.
              * icu/unicode/uconfig.h: Added.
              * icu/unicode/uenum.h: Added.
              * icu/unicode/uidna.h: Added.
              * icu/unicode/uiter.h: Added.
              * icu/unicode/uloc.h: Added.
              * icu/unicode/umachine.h: Added.
              * icu/unicode/urename.h: Added.
              * icu/unicode/ustring.h: Added.
              * icu/unicode/utf.h: Added.
              * icu/unicode/utf16.h: Added.
              * icu/unicode/utf8.h: Added.
              * icu/unicode/utf_old.h: Added.
              * icu/unicode/utypes.h: Added.
              * icu/unicode/uversion.h: Added.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@9272 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      aede77e8
    • darin's avatar
      Reviewed by Maciej. · a000448f
      darin authored
              - fixed so we can compile without Apple Internal headers installed
      
              * JavaScriptCore.pbproj/project.pbxproj: Added icu directory to header search path.
      
              * icu/README: Added.
              * icu/unicode/platform.h: Added.
              * icu/unicode/uchar.h: Added.
              * icu/unicode/uconfig.h: Added.
              * icu/unicode/umachine.h: Added.
              * icu/unicode/urename.h: Added.
              * icu/unicode/utf.h: Added.
              * icu/unicode/utf16.h: Added.
              * icu/unicode/utf8.h: Added.
              * icu/unicode/utf_old.h: Added.
              * icu/unicode/utypes.h: Added.
              * icu/unicode/uversion.h: Added.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@9271 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a000448f
    • mjs's avatar
      Reviewed by Vicki. · 9ca2abf1
      mjs authored
      	- replace more use of CGCompositeOperation that I missed.
      
              * WebCoreSupport.subproj/WebImageData.m:
              (-[WebImageData _checkSolidColor:]):
              (-[WebImageData _fillSolidColorInRect:compositeOperation:context:]):
              (-[WebImageData tileInRect:fromPoint:context:]):
              (-[WebImageData _PDFDrawFromRect:toRect:operation:alpha:flipped:context:]):
              * WebCoreSupport.subproj/WebImageRenderer.m:
              (-[WebInternalImage _PDFDrawFromRect:toRect:operation:alpha:flipped:]):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@9270 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9ca2abf1
  3. 03 Jun, 2005 1 commit
    • mjs's avatar
      Reviewed by NOBODY (OOPS!). · bb3f3c4a
      mjs authored
      	- replace use of CGCompositeOperation SPI with NSCompositingOperation API
      
              * WebCoreSupport.subproj/WebImageData.h:
              * WebCoreSupport.subproj/WebImageData.m:
              (-[WebImageData _fillSolidColorInRect:compositeOperation:context:]):
              (-[WebImageData _PDFDrawFromRect:toRect:operation:alpha:flipped:context:]):
              * WebCoreSupport.subproj/WebImageRenderer.m:
              (-[WebImageRenderer drawImageInRect:fromRect:]):
              (-[WebImageRenderer drawImageInRect:fromRect:compositeOperator:context:]):
              * WebCoreSupport.subproj/WebImageRendererFactory.m:
              (-[WebImageRendererFactory CGCompositeOperationInContext:]):
              (-[WebImageRendererFactory setCGCompositeOperation:inContext:]):
              (-[WebImageRendererFactory setCGCompositeOperationFromString:inContext:]):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@9269 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      bb3f3c4a
  4. 02 Jun, 2005 8 commits
    • mjs's avatar
      Reviewed by Kevin. · c67865b7
      mjs authored
      	- removed dependencies on NSError SPI
      
              * Misc.subproj/WebKitErrors.m:
              (-[NSError _webkit_initWithDomain:code:URL:]):
              (+[NSError _webkit_errorWithDomain:code:URL:]):
              (+[NSError _webKitErrorWithDomain:code:URL:]):
              (+[NSError _webKitErrorWithCode:failingURL:]):
              (+[NSError _webkit_addErrorsWithCodesAndDescriptions:inDomain:]):
              (registerErrors):
              * Plugins.subproj/WebNetscapePluginRepresentation.m:
              * Plugins.subproj/WebNetscapePluginStream.m:
              * WebCoreSupport.subproj/WebSubresourceClient.m:
              * WebView.subproj/WebBaseResourceHandleDelegate.m:
              * WebView.subproj/WebDefaultResourceLoadDelegate.m:
              * WebView.subproj/WebMainResourceClient.m:
              (-[WebMainResourceClient didFailWithError:]):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@9265 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c67865b7
    • mjs's avatar
      Reviewed by Vicki. · 2bb449ee
      mjs authored
      	- remove use of _cfBundle SPI
      
              * Plugins.subproj/WebBasePluginPackage.h:
              * Plugins.subproj/WebBasePluginPackage.m:
              (-[WebBasePluginPackage initWithPath:]):
              (-[WebBasePluginPackage load]):
              (-[WebBasePluginPackage dealloc]):
              * Plugins.subproj/WebNetscapePluginPackage.m:
              (-[WebNetscapePluginPackage openResourceFile]):
              (-[WebNetscapePluginPackage closeResourceFile:]):
              (-[WebNetscapePluginPackage initWithPath:]):
              (-[WebNetscapePluginPackage unloadWithoutShutdown]):
              (-[WebNetscapePluginPackage load]):
              * Plugins.subproj/WebPluginPackage.m:
              (-[WebPluginPackage initWithPath:]):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@9264 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2bb449ee
    • mjs's avatar
      Reviewed by Adele. · 3eca632c
      mjs authored
      	- remove use of NSURLRequest and NSUserDefaults SPI
      
              * History.subproj/WebHistoryItem.m:
              (-[WebHistoryItem _setFormInfoFromRequest:]):
              * Misc.subproj/WebNSURLRequestExtras.h: Added.
              * Misc.subproj/WebNSURLRequestExtras.m: Added.
              (-[NSURLRequest _web_HTTPReferrer]):
              (-[NSURLRequest _web_HTTPContentType]):
              (-[NSMutableURLRequest _web_setHTTPContentType:]):
              (-[NSMutableURLRequest _web_setHTTPReferrer:]):
              (-[NSMutableURLRequest _web_setHTTPUserAgent:]):
              * Misc.subproj/WebNSUserDefaultsExtras.h: Added.
              * Misc.subproj/WebNSUserDefaultsExtras.m: Added.
              (-[NSString _webkit_HTTPStyleLanguageCode]):
              (makeLock):
              (+[NSUserDefaults _ensureAndLockPreferredLanguageLock]):
              (+[NSUserDefaults _webkit_defaultsDidChange]):
              (addDefaultsChangeObserver):
              (+[NSUserDefaults _webkit_addDefaultsChangeObserver]):
              (+[NSUserDefaults _webkit_preferredLanguageCode]):
              * Plugins.subproj/WebBaseNetscapePluginView.m:
              (-[WebBaseNetscapePluginView requestWithURLCString:]):
              * Plugins.subproj/WebNetscapePluginEmbeddedView.m:
              (-[WebNetscapePluginEmbeddedView didStart]):
              * Plugins.subproj/WebNetscapePluginStream.m:
              (-[WebNetscapePluginStream initWithRequest:pluginPointer:notifyData:sendNotification:]):
              * WebCoreSupport.subproj/WebBridge.m:
              (-[WebBridge createWindowWithURL:frameName:]):
              (-[WebBridge syncLoadResourceWithURL:customHeaders:postData:finalURL:responseHeaders:statusCode:]):
              (-[WebBridge incomingReferrer]):
              (-[WebBridge createModalDialogWithURL:]):
              * WebCoreSupport.subproj/WebSubresourceClient.m:
              (+[WebSubresourceClient startLoadingResource:withRequest:customHeaders:referrer:forDataSource:]):
              * WebCoreSupport.subproj/WebViewFactory.m:
              (-[WebViewFactory defaultLanguageCode]):
              * WebKit.pbproj/project.pbxproj:
              * WebView.subproj/WebBaseResourceHandleDelegate.m:
              (-[WebBaseResourceHandleDelegate willSendRequest:redirectResponse:]):
              * WebView.subproj/WebDefaultContextMenuDelegate.m:
              (-[WebDefaultUIDelegate openNewWindowWithURL:element:]):
              * WebView.subproj/WebFrame.m:
              (-[WebFrame _loadItem:withLoadType:]):
              (-[WebFrame _addExtraFieldsToRequest:alwaysFromRequest:]):
              (-[WebFrame _loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
              (-[WebFrame _postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
              * WebView.subproj/WebMainResourceClient.m:
              * WebView.subproj/WebView.m:
              (-[WebView _cachedResponseForURL:]):
              (-[WebView userAgentForURL:]):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@9263 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3eca632c
    • mjs's avatar
      Reviewed by Don. · be405747
      mjs authored
      	- move private gunk from header to implementation file.
      
              * WebCoreSupport.subproj/WebNewKeyGeneration.c:
              * WebCoreSupport.subproj/WebNewKeyGeneration.h:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@9262 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      be405747
    • mjs's avatar
      Reviewed by Kevin. · 88062f2f
      mjs authored
      	- remove dependency on NSFileManager and NSCalendarDate private extras from WebFou
      
              * History.subproj/WebHistory.m:
              (-[WebHistoryPrivate findIndex:forDay:]):
              (-[WebHistoryPrivate arrayRepresentation]):
              (-[WebHistoryPrivate _loadHistoryGuts:URL:error:]):
              * Misc.subproj/WebFileDatabase.m:
              (-[WebFileDatabase _truncateToSizeLimit:]):
              (-[WebFileDatabase removeAllObjects]):
              (-[WebFileDatabase performSetObject:forKey:]):
              (-[WebFileDatabase performRemoveObjectForKey:]):
              (-[WebFileDatabase open]):
              * Misc.subproj/WebKitNSStringExtras.m:
              (-[NSString _webkit_fixedCarbonPOSIXPath]):
              * Misc.subproj/WebNSCalendarDateExtras.h: Added.
              * Misc.subproj/WebNSCalendarDateExtras.m: Added.
              (-[NSCalendarDate _webkit_compareDay:]):
              * Misc.subproj/WebNSDataExtras.h:
              * Misc.subproj/WebNSDictionaryExtras.h:
              * Misc.subproj/WebNSFileManagerExtras.h: Added.
              * Misc.subproj/WebNSFileManagerExtras.m: Added.
              (-[NSFileManager _webkit_fileExistsAtPath:isDirectory:traverseLink:]):
              (-[NSFileManager _webkit_createIntermediateDirectoriesForPath:attributes:]):
              (-[NSFileManager _webkit_createDirectoryAtPathWithIntermediateDirectories:attributes:]):
              (-[NSFileManager _webkit_createFileAtPathWithIntermediateDirectories:contents:attributes:directoryAttributes:]):
              (-[NSFileManager _webkit_removeFileOnlyAtPath:]):
              (-[NSFileManager _webkit_backgroundRemoveFileAtPath:]):
              (-[NSFileManager _webkit_backgroundRemoveLeftoverFiles:]):
              (-[NSFileManager _webkit_carbonPathForPath:]):
              (-[NSFileManager _webkit_startupVolumeName]):
              (-[NSFileManager _webkit_pathWithUniqueFilenameForPath:]):
              * Plugins.subproj/WebBaseNetscapePluginStream.m:
              * WebKit.pbproj/project.pbxproj:
              * WebView.subproj/WebHTMLView.m:
              (-[WebHTMLView namesOfPromisedFilesDroppedAtDestination:]):
              * WebView.subproj/WebImageView.m:
              (-[WebImageView namesOfPromisedFilesDroppedAtDestination:]):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@9261 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      88062f2f
    • mjs's avatar
      Reviewed by Adele. · 101dcd61
      mjs authored
      	- remove dependencies on NSDictionary and NSURL extras
      
              * History.subproj/WebHistoryItem.m:
              (-[WebHistoryItem initFromDictionaryRepresentation:]):
              * Misc.subproj/WebKitNSStringExtras.h:
              * Misc.subproj/WebKitNSStringExtras.m:
              (-[NSString _webkit_hasCaseInsensitiveSuffix:]):
              (-[NSString _webkit_hasCaseInsensitiveSubstring:]):
              (-[NSString _webkit_filenameByFixingIllegalCharacters]):
              * Misc.subproj/WebNSDictionaryExtras.h: Added.
              * Misc.subproj/WebNSDictionaryExtras.m: Added.
              (-[NSDictionary _webkit_numberForKey:]):
              (-[NSDictionary _webkit_intForKey:]):
              (-[NSDictionary _webkit_stringForKey:]):
              (-[NSDictionary _webkit_objectForMIMEType:]):
              (-[NSMutableDictionary _webkit_setObject:forUncopiedKey:]):
              (-[NSMutableDictionary _webkit_setInt:forKey:]):
              (-[NSMutableDictionary _webkit_setBool:forKey:]):
              * Misc.subproj/WebNSPasteboardExtras.m:
              * Misc.subproj/WebNSURLExtras.h:
              * Misc.subproj/WebNSURLExtras.m:
              (-[NSURL _webkit_URLByRemovingFragment]):
              (-[NSURL _webkit_scriptIfJavaScriptURL]):
              (-[NSURL _webkit_isFileURL]):
              (-[NSURL _web_hostString]):
              (-[NSURL _webkit_suggestedFilenameWithMIMEType:]):
              * Misc.subproj/WebNSViewExtras.m:
              * Panels.subproj/WebPanelAuthenticationHandler.m:
              * Plugins.subproj/WebBaseNetscapePluginStream.m:
              * Plugins.subproj/WebBaseNetscapePluginView.m:
              (-[WebBaseNetscapePluginView evaluateJavaScriptPluginRequest:]):
              (-[WebBaseNetscapePluginView loadPluginRequest:]):
              (-[WebBaseNetscapePluginView loadRequest:inTarget:withNotifyData:sendNotification:]):
              * Plugins.subproj/WebPluginController.m:
              (-[WebPluginController webPlugInContainerLoadRequest:inFrame:]):
              * WebCoreSupport.subproj/WebBridge.m:
              * WebKit.pbproj/project.pbxproj:
              * WebView.subproj/WebDataSource.m:
              * WebView.subproj/WebFrame.m:
              * WebView.subproj/WebFrameView.m:
              * WebView.subproj/WebHTMLView.m:
              * WebView.subproj/WebPreferences.m:
              (-[WebPreferences _setIntegerValue:forKey:]):
              (-[WebPreferences _setBoolValue:forKey:]):
              * WebView.subproj/WebResource.m:
              (-[WebResource _initWithPropertyList:]):
              (-[WebResource _fileWrapperRepresentation]):
              * WebView.subproj/WebView.m:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@9260 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      101dcd61
    • mjs's avatar
      Reviewed by Vicki. · 3dc6aba9
      mjs authored
      	- remove dependencies on NSString and NSData extras from Foundation
      
              * Misc.subproj/WebKitNSStringExtras.h:
              * Misc.subproj/WebKitNSStringExtras.m:
              (-[NSString _webkit_isCaseInsensitiveEqualToString:]):
              (-[NSString _webkit_hasCaseInsensitivePrefix:]):
              (-[NSString _webkit_stringByTrimmingWhitespace]):
              (-[NSString _webkit_stringByCollapsingNonPrintingCharacters]):
              (-[NSString _webkit_fixedCarbonPOSIXPath]):
              * Misc.subproj/WebNSDataExtras.h:
              * Misc.subproj/WebNSDataExtras.m:
              (-[NSString _web_capitalizeRFC822HeaderFieldName]):
              (-[NSData _web_isCaseInsensitiveEqualToCString:]):
              (_findEOL):
              (-[NSData _web_parseRFC822HeaderFields]):
              (-[NSData _webkit_guessedMIMETypeForXML]):
              (-[NSData _webkit_guessedMIMEType]):
              * Misc.subproj/WebNSPasteboardExtras.m:
              (-[NSPasteboard _web_bestURL]):
              * Misc.subproj/WebNSURLExtras.h:
              * Misc.subproj/WebNSURLExtras.m:
              (applyHostNameFunctionToURLString):
              (+[NSURL _web_URLWithUserTypedString:relativeToURL:]):
              (+[NSURL _web_URLWithDataAsString:relativeToURL:]):
              (-[NSURL _webkit_shouldLoadAsEmptyDocument]):
              (-[NSString _webkit_isJavaScriptURL]):
              (-[NSString _webkit_isFileURL]):
              (-[NSString _webkit_isFTPDirectoryURL]):
              (-[NSString _web_encodeHostName]):
              (-[NSString _webkit_rangeOfURLScheme]):
              (-[NSString _webkit_looksLikeAbsoluteURL]):
              (-[NSString _webkit_URLFragment]):
              * Misc.subproj/WebNSViewExtras.m:
              * Plugins.subproj/WebBaseNetscapePluginView.m:
              (-[WebBaseNetscapePluginView _postURL:target:len:buf:file:notifyData:sendNotification:allowHeaders:]):
              * Plugins.subproj/WebPluginDatabase.m:
              * WebCoreSupport.subproj/WebBridge.m:
              (-[WebBridge setTitle:]):
              * WebView.subproj/WebDataSource.m:
              (-[WebDataSource _setTitle:]):
              * WebView.subproj/WebFrame.m:
              (-[WebFrame _loadItem:withLoadType:]):
              * WebView.subproj/WebPreferences.m:
              (-[WebPreferences userStyleSheetLocation]):
              * WebView.subproj/WebView.m:
              (+[WebView _MIMETypeForFile:]):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@9259 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3dc6aba9
    • mjs's avatar
      Reviewed by John. · 8e73c3c1
      mjs authored
      	- first stage of cleaning up SPI usage in WebKit
      
              * Carbon.subproj/CarbonUtils.m:
              * DOM.subproj/WebDOMOperations.m:
              (-[DOMHTMLLinkElement _subresourceURLs]):
              (-[DOMHTMLParamElement _subresourceURLs]):
              * History.subproj/WebHistoryItem.m:
              (-[WebHistoryItem _setFormInfoFromRequest:]):
              * Misc.subproj/WebDatabase.m:
              (-[WebDatabase setObject:forKey:]):
              (-[WebDatabase removeObjectForKey:]):
              (-[WebDatabase removeAllObjects]):
              (-[WebDatabase objectForKey:]):
              (-[WebDatabase open]):
              (-[WebDatabase close]):
              (-[WebDatabase sync]):
              (-[WebDatabase count]):
              (-[WebDatabase setSizeLimit:]):
              * Misc.subproj/WebIconDatabase.m:
              (-[WebIconDatabase iconForURL:withSize:cache:]):
              (-[WebIconDatabase _iconForFileURL:withSize:]):
              * Misc.subproj/WebKitNSStringExtras.h:
              * Misc.subproj/WebKitNSStringExtras.m:
              (+[NSString _web_encodingForResource:]):
              (-[NSString _webkit_isCaseInsensitiveEqualToString:]):
              * Misc.subproj/WebNSEventExtras.h:
              * Misc.subproj/WebNSEventExtras.m:
              (-[NSEvent _web_isTabKeyEvent]):
              * Misc.subproj/WebNSURLExtras.h:
              * Misc.subproj/WebNSURLExtras.m:
              (-[NSURL _webkit_isFileURL]):
              (-[NSString _webkit_isJavaScriptURL]):
              (-[NSString _webkit_isFileURL]):
              * Panels.subproj/WebPanelAuthenticationHandler.m:
              (-[NSMutableDictionary _webkit_setObject:forUncopiedKey:]):
              (-[WebPanelAuthenticationHandler enqueueChallenge:forWindow:]):
              (-[WebPanelAuthenticationHandler startAuthentication:window:]):
              * Plugins.subproj/WebBaseNetscapePluginView.m:
              * Plugins.subproj/WebBasePluginPackage.m:
              (-[WebBasePluginPackage isQuickTimePlugIn]):
              (-[WebBasePluginPackage isJavaPlugIn]):
              * Plugins.subproj/WebPluginPackage.m:
              (-[WebPluginPackage initWithPath:]):
              * WebCoreSupport.subproj/WebBridge.m:
              (-[WebBridge canTargetLoadInFrame:]):
              (-[WebBridge valueForKey:keys:values:]):
              * WebCoreSupport.subproj/WebGlyphBuffer.m:
              * WebCoreSupport.subproj/WebImageDecodeItem.h:
              * WebCoreSupport.subproj/WebImageDecodeItem.m:
              * WebCoreSupport.subproj/WebImageDecoder.h:
              * WebCoreSupport.subproj/WebImageDecoder.m:
              * WebCoreSupport.subproj/WebTextRenderer.h:
              * WebKitPrefix.h:
              * WebView.subproj/WebBaseResourceHandleDelegate.m:
              (-[WebBaseResourceHandleDelegate _canUseResourceForRequest:]):
              * WebView.subproj/WebDataProtocol.m:
              (+[WebDataProtocol _webIsDataProtocolURL:]):
              * WebView.subproj/WebFrame.m:
              (-[WebFrame _shouldAllowAccessFrom:]):
              (-[WebFrame reload]):
              * WebView.subproj/WebHTMLRepresentation.m:
              (-[WebHTMLRepresentation _isDisplayingWebArchive]):
              * WebView.subproj/WebMainResourceClient.m:
              (-[WebMainResourceClient continueAfterContentPolicy:response:]):
              (-[WebMainResourceClient didReceiveResponse:]):
              * WebView.subproj/WebPDFView.m:
              * WebView.subproj/WebView.m:
              (+[WebView _MIMETypeForFile:]):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@9258 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8e73c3c1
  5. 01 Jun, 2005 2 commits
    • darin's avatar
      WebCore: · f9876fae
      darin authored
              Reviewed by John Sullivan.
              No layout tests added because showModalDialog won't work in DumpRenderTree at the moment.
      
              - WebKit part of fix for <rdar://problem/3166090> add IE JavaScript extension window.showModalDialog
      
              * khtml/ecma/kjs_window.cpp:
              (KJS::allowPopUp): Added. Used by showModalDialog now and should be used by window.open later.
              (KJS::parseFeatures): Ditto.
              (KJS::boolFeature): Ditto.
              (KJS::intFeature): Ditto.
              (KJS::createNewWindow): Ditto.
              (KJS::canShowModalDialog): Added.
              (KJS::canShowModalDialogNow): Added.
              (KJS::showModalDialog): Added.
              (KJS::Window::get): Return the showModalDialog function object if the extension can run modal.
              (KJS::Window::clear): Add code to store the return value for the case where the window is a modal dialog.
              (KJS::WindowFunc::tryCall): Add the call to the showModalDialog function.
      
              * khtml/ecma/kjs_window.h: Add setReturnValueSlot function so showModalDialog can get the return
              value from the dialog it creates. Also add a data member to keep track of the pointer and a constant
              for the ShowModalDialog method.
      
              * khtml/khtml_part.h: Added new changeLocation member function. Made setOpener, openedByJS, and
              setOpenedByJS public.
      
              * khtml/khtml_part.cpp:
              (KHTMLPart::changeLocation): Broke out the part of slotRedirect that actually does the location change
              into a separate function so it can be called when needed. The case using it now is to load the content
              of a new window in KJS::createNewWindow.
              (KHTMLPart::slotRedirect): Call changeLocation to do most of the work.
              (KHTMLPart::urlSelected): Fixed a broken case where the "lack of referrer" in a new window would cause
              the referrer passed in by JavaScript to be ignored when opening a new window -- match logic elsewhere
              that leaves the referrer in the args alone if one is not set in the window.
      
              * khtml/khtmlpart_p.h: Initialize m_bCleared to true to avoid an unnecessary clear before loading the
              first URL in a new window. This change is needed to avoid blowing away the "dialogArguments" value in
              a modal dialog window, but it also avoid unnecessary work for each new window.
      
              * kwq/KWQApplication.h: Add availableGeometry function for QDesktopWidget. Used by the showModalDialog
              function inside kjs_window.cpp (and should be used elsewhere eventually too). Matches a Qt function that
              we just didn't have implemented before.
              * kwq/KWQApplication.mm: (QDesktopWidget::availableGeometry): Added.
      
              * kwq/KWQKHTMLPartBrowserExtension.h: Added new canRunModal, canRunModalNow, and runModal functions.
              * kwq/KWQKHTMLPartBrowserExtension.mm:
              (KHTMLPartBrowserExtension::createNewWindow): Call createModalDialogWithURL on the bridge if the
              new window is a dialog. Also fixed the early return case for when the bridge returns nil.
              (KHTMLPartBrowserExtension::canRunModal): Added. Calls bridge.
              (KHTMLPartBrowserExtension::canRunModalNow): Ditto.
              (KHTMLPartBrowserExtension::runModal): Ditto.
      
              * kwq/KWQKPartsBrowserExtension.h:
              (KParts::URLArgs::URLArgs): Initialize m_lockHistory to false.
              (KParts::WindowArgs::WindowArgs): Add a dialog boolean.
      
              * kwq/WebCoreBridge.h: Declared canRunModal, canRunModalNow, createModalDialogWithURL, and runModal methods.
      
      WebKit:
      
              Reviewed by John Sullivan.
      
              - WebKit part of fix for <rdar://problem/3166090> add IE JavaScript extension window.showModalDialog
      
              * WebCoreSupport.subproj/WebBridge.m:
              (-[WebBridge createModalDialogWithURL:]): Added. Calls the UI delegate, falling back to the generic
              "create WebView" method.
              (-[WebBridge canRunModal]): Added. Checks the UI delegate to see if it implements runModal.
              (-[WebBridge canRunModalNow]): Added. Checks the "inConnectionCallback" field so we can prevent
              deadlock since we can't do any I/O while inside a connection callback until this aspect of NSURLConnection
              is changed.
              (-[WebBridge runModal]): Added. Sets "defersCallbacks" on all other web views in the group, then
              calls runModal on the UI delegate.
      
              * WebView.subproj/WebBaseResourceHandleDelegate.h: Added inConnectionCallback class method.
              * WebView.subproj/WebBaseResourceHandleDelegate.m:
              (-[WebBaseResourceHandleDelegate connection:willSendRequest:redirectResponse:]): Bump count and then
              decrement count so we can tell if we are in a callback.
              (-[WebBaseResourceHandleDelegate connection:didReceiveAuthenticationChallenge:]): Ditto.
              (-[WebBaseResourceHandleDelegate connection:didCancelAuthenticationChallenge:]): Ditto.
              (-[WebBaseResourceHandleDelegate connection:didReceiveResponse:]): Ditto.
              (-[WebBaseResourceHandleDelegate connection:didReceiveData:lengthReceived:]): Ditto.
              (-[WebBaseResourceHandleDelegate connection:willStopBufferingData:]): Ditto.
              (-[WebBaseResourceHandleDelegate connectionDidFinishLoading:]): Ditto.
              (-[WebBaseResourceHandleDelegate connection:didFailWithError:]): Ditto.
              (-[WebBaseResourceHandleDelegate connection:willCacheResponse:]): Ditto.
              (+[WebBaseResourceHandleDelegate inConnectionCallback]): Added. Return YES if count is not 0.
      
              * WebView.subproj/WebMainResourceClient.m:
              (-[WebMainResourceClient receivedError:]): Changed to use the method without the connection: parameter
              in the base class, since we no longer are overriding the connection: version.
              (-[WebMainResourceClient willSendRequest:redirectResponse:]): Change to override the version without
              the connection prefix/parameter; now only the base class overrides the actual connection delegate methods.
              (-[WebMainResourceClient continueAfterContentPolicy:response:]): Ditto.
              (-[WebMainResourceClient didReceiveResponse:]): Ditto.
              (-[WebMainResourceClient didReceiveData:lengthReceived:]): Ditto.
              (-[WebMainResourceClient didFinishLoading]): Ditto.
              (-[WebMainResourceClient didFailWithError:]): Ditto.
              (-[WebMainResourceClient loadWithRequestNow:]): Call the method without the connection parameter.
      
              * WebView.subproj/WebUIDelegatePrivate.h: Added new SPI here that WebBrowser implements.
      
      WebBrowser:
      
              Reviewed by John.
      
              - WebBrowser part of fix for <rdar://problem/3166090> add IE JavaScript extension window.showModalDialog
      
              * AppController.m: (-[AppController validateUserInterfaceItem:]): Disable the find panel
              when there's a modal panel up.
              * BrowserApplication.m: (-[BrowserApplication nextEventMatchingMask:untilDate:inMode:dequeue:]):
              Force the event loop to use the default run loop mode instead of the modal panel mode for
              modal BrowserWindows. This is required to work around the WebFoundation issue where it will
              only give us data in the default run loop mode.
              * BrowserDocument.m:
              (-[BrowserDocument canAddBookmark]): Return NO when a modal window is up.
              (-[BrowserDocument canViewSource]): Ditto.
              (-[BrowserDocument canMailPage]): Ditto.
              (-[BrowserDocument canMailPageAddress]): Ditto.
              (-[BrowserDocument canOpenInDashboard]): Ditto.
              (-[BrowserDocument canSave]): Ditto.
              (-[BrowserDocument validateUserInterfaceItem:]): Disable save commands when modal window is up.
              Also implement validation for all three of the save commands that we implement.
              * BrowserDocumentController.m: (-[BrowserDocumentController validateUserInterfaceItem:]):
              Disable newTab: when modal window is up.
              * BrowserWebView.m:
              (-[BrowserWebView webView:createWebViewModalDialogWithRequest:]): Added. Creates a window that
              has no toolbar, which is an efficient way to disable all the toolbar-related commands for that
              window, even ones built into AppKit which otherwise would be difficult to disable.
              (-[BrowserWebView webViewRunModal:]): Added. Currently just calls -[NSApplication runModalForWindow:]
              but could do more in the future. More importantly, having this implemented is how the Web Kit can
              tell that this application supports modal web dialogs.
              (-[BrowserWebView validateUserInterfaceItem:]): Disable setPageForSnapBackToCurrentPage: for
              modal windows.
              * BrowserWindow.m: (-[BrowserWindow close]): Abort the modal session if the window being closed is
              the modal window. This is the only way we return from webViewRunModal:.
              * BrowserWindowController.m:
              (-[BrowserWindowController canShowInputFields]): Return no when this window is modal.
              (-[BrowserWindowController validateUserInterfaceItem:]): Disable newTab: and newBookmarkFolder: when
              modal window is up.
              (-[BrowserWindowController validateMenuItem:]): Disable Show/Hide of address bar, bookmarks bar,
              bookmarks collection, and toggleFullScreen: when modal window is up.
              (-[BrowserWindowController showWindow:]): Change code so that a new window always comes up behind
              a modal window. Also rearranged things so that setWindowFocusDisabled:YES will be called in any
              case where the window does not start out as key.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@9250 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f9876fae
    • adele's avatar
      fix for <rdar://problem/4135705> REGRESSION (412-TOT) crash in TV... · fc39f477
      adele authored
              fix for <rdar://problem/4135705> REGRESSION (412-TOT) crash in TV Tracker widget - KJS::XMLHttpRequest::removeFromRequestsByDocument()
      
              Reviewed by Darin.
      
              Synchronous loads don't get added to our requestsByDocument dictionary, so we should try to remove the request in this case.
      
              * khtml/ecma/xmlhttprequest.cpp: (KJS::XMLHttpRequest::removeFromRequestsByDocument): added checks to make sure request exists before trying to remove it.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@9243 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      fc39f477
  6. 30 May, 2005 4 commits
    • darin's avatar
      Reviewed by John (fix for Radar bug) and Vicki (all the rest). · b8025e38
      darin authored
              - fixed <rdar://problem/4105097> REGRESSION (138-139): Hitting Enter on a checkbox toggles check mark instead of submitting form
              - fixed other problems discovered while trying to make a layout test to test this work:
                  - added newer DOM 3 event type constants
                  - fixed prototype setup bug preventing event initialization functions from being called
                  - fixed bug where any function taking an event parameter would crash with a nil-deref
                  - fixed incorrect ref/deref bug in MutationEventImpl that would cause a crash crash
      
              Test cases added:
              * layout-tests/fast/forms/check-box-enter-key-expected.txt: Added.
              * layout-tests/fast/forms/check-box-enter-key.html: Added.
              * layout-tests/fast/events/event-creation-expected.txt: Added.
              * layout-tests/fast/events/event-creation.html: Added.
      
              * khtml/html/html_formimpl.cpp: (DOM::HTMLInputElementImpl::defaultEventHandler): Separate the checks for
              the space bar and the Enter key and make Enter submit the form on a check box or radio button.
      
              * khtml/ecma/kjs_events.cpp:
              (KJS::toEvent): Fixed bug where this was checking for DOMNode rather than DOMEvent, so always returning 0.
              Without this, both test cases above will crash.
              (KJS::DOMUIEvent::DOMUIEvent): Set prototype; without this, the event-creation test case will fail.
              (KJS::DOMMouseEvent::DOMMouseEvent): Set prototype; without this, the event-creation test case will fail.
              (KJS::DOMKeyboardEvent::DOMKeyboardEvent): Set prototype; without this, both test cases above will fail.
              (KJS::DOMMutationEvent::DOMMutationEvent): Set prototype; without this, both test cases above will fail.
      
              * khtml/xml/dom2_eventsimpl.cpp:
              (MutationEventImpl::MutationEventImpl): Fix typo where the wrong object was ref'd.
              (MutationEventImpl::initMutationEvent): Ditto. This was causing the layout tests to crash with the new tests above.
      
              * khtml/xml/dom_docimpl.cpp: (DocumentImpl::createEvent): Added new event types to match the current DOM
              Level 3 specification. The test above tests both the new event types and the old ones.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@9232 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b8025e38
    • darin's avatar
      Reviewed by John. · 8b407880
      darin authored
              No test case added because our layout test system doesn't allow us to do inline input.
      
              - fixed <rdar://problem/4094066> REGRESSION (1.2.5-1.3): unconfirmed inline input is ignored in <textarea>, lost when form is submitted
      
              * kwq/KWQTextArea.mm: (-[KWQTextArea _createTextView]): Call setWantsNotificationForMarkedText:YES.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@9231 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8b407880
    • mjs's avatar
      Reviewed by Darin. · 37c4afb0
      mjs authored
      	- fixed <rdar://problem/4125222> Dashboard heap size grows over time (leak caused by JavaScript DOM node wrappers?)
      
      	- changed per-document DOMObject caching to work with DOMNodes, since that is all it was used for anyway.
      
              Test cases added: (these tests actually ensure that DOM wrappers
      	are sufficiently protected from GC to match other browsers, they
      	do not verify that the leak is fixed since there's no way to test
      	that with layout tests).
      
              * layout-tests/fast/dom/gc-1-expected.txt: Added.
              * layout-tests/fast/dom/gc-1.html: Added.
              * layout-tests/fast/dom/gc-2-expected.txt: Added.
              * layout-tests/fast/dom/gc-2.html: Added.
              * layout-tests/fast/dom/gc-3-expected.txt: Added.
              * layout-tests/fast/dom/gc-3.html: Added.
      
              * khtml/ecma/kjs_binding.cpp:
              (KJS::ScriptInterpreter::forgetDOMObjectForDocument): New function - allows nodes
      	that get removed from the document to go away from the cache if not referenced.
              (KJS::ScriptInterpreter::mark): Don't mark nodes that aren't in the document,
      	they can stay in the cache but only if they have another source of life.
              (KJS::ScriptInterpreter::domNodesPerDocument): Renamed and changed parameter types.
              (KJS::ScriptInterpreter::getDOMNodeForDocument): Renamed and changed parameter types.
              (KJS::ScriptInterpreter::forgetDOMNodeForDocument): Renamed and changed parameter types.
              (KJS::ScriptInterpreter::putDOMNodeForDocument): Renamed and changed parameter types.
              (KJS::ScriptInterpreter::forgetAllDOMNodesForDocument): Renamed and changed parameter types.
              (KJS::ScriptInterpreter::updateDOMNodeDocument): Renamed and changed parameter types.
              * khtml/ecma/kjs_binding.h:
              * khtml/ecma/kjs_dom.cpp:
              (KJS::DOMNode::~DOMNode): call forgetDOMObjectForDocument.
              (KJS::DOMNode::mark): If the node is not in the document, make sure to mark
      	all wrappers in its detached piece of the tree.
              (KJS::getDOMNode): Updated for renames
              * khtml/ecma/kjs_dom.h:
              * khtml/xml/dom_docimpl.cpp:
              (DocumentImpl::~DocumentImpl): Updated for renames.
              * khtml/xml/dom_nodeimpl.cpp:
              (NodeImpl::checkAddChild): Updated for renames.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@9230 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      37c4afb0
    • darin's avatar
      Reviewed by John. · ebdaa1cf
      darin authored
              Could not figure out how to make an <object> fallback, so for now, no layout test.
      
              - fixed <rdar://problem/4134124> REGRESSION (tip of tree): crash in QWidget::getView handling onunload event (yahoo.com)
      
              * khtml/html/html_objectimpl.cpp: (DOM::HTMLObjectElementImpl::getObjectInstance):
              Check type of RenderObject to be sure it is a RenderWidget before calling widget() on it.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@9229 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ebdaa1cf
  7. 27 May, 2005 6 commits
    • adele's avatar
      Change by Darin, reviewed by me. · 9bf47fec
      adele authored
              fix for <rdar://problem/4067761> 8A425: reload stock widget over and over and crash in XMLHttpRequest::changeState
      
              * khtml/khtml_part.cpp: (KHTMLPart::closeURL): now cancels XMLHttpRequests
              * khtml/ecma/xmlhttprequest.h: Added cancelRequests, addToRequestsByDocument, and RemoveFromRequestsByDocument methods. Added requestsByDocument dictionary.
              * khtml/ecma/xmlhttprequest.cpp:
              (KJS::XMLHttpRequest::send): calls addToRequestsByDocument
              (KJS::XMLHttpRequest::abort): calls removeFromRequestsByDocument
              (KJS::XMLHttpRequest::slotFinished): calls removeFromRequestsByDocument
              (KJS::XMLHttpRequest::requestsByDocument):  creates dictionary to manage requests.
              (KJS::XMLHttpRequest::addToRequestsByDocument): adds this request to dict.
              (KJS::XMLHttpRequest::removeFromRequestsByDocument): removes this request from dict.
              (KJS::XMLHttpRequest::cancelRequests): goes and cancels requests in the doc
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@9228 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9bf47fec
    • adele's avatar
      Reviewed by me, done by Darin. · 14c65a33
      adele authored
              - Darin fixed a regression I found from Darin's recent DOM change that broke GMail
      
              * khtml/ecma/kjs_window.cpp:
              (KJS::Window::get): Added nil check for document.
              (KJS::Window::hasProperty): Ditto.
      
              Test cases added: None (Darin should write one).
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@9227 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      14c65a33
    • adele's avatar
      Reviewed by Darin. · ce788c82
      adele authored
              fix for <rdar://problem/4121747> Cannot log into Cingular.com account page (load event delivered while still processing incoming data)
      
              * khtml/misc/loader.cpp:
              (DocLoader::DocLoader): Initialized m_loadInProgress to false.
              (DocLoader::setLoadInProgress): Added.
              (Loader::slotFinished): sets the m_loadInProgress flag to reflect the fact that we're not really done loading this request until we emit the signal with the request status.
              (Loader::numRequests): If there's a load in progress, we increment the number of requests so it doesn't seem like the load is done.
              * khtml/misc/loader.h: (khtml::DocLoader::loadInProgress): Added.
      
              Test cases added:
              * layout-tests/fast/loader/loadInProgress.html: Added
              * layout-tests/fast/loader/loadInProgress-expected.html: Added
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@9226 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ce788c82
    • darin's avatar
      Reviewed by Vicki. · a282b6c7
      darin authored
              - fixed <rdar://problem/4125212> form submission delayed until you are on the next page on XML/XSL page (security hole)
      
              * khtml/xsl/xslt_processorimpl.cpp: (DOM::XSLTProcessorImpl::documentFromXMLDocPtr):
              Call setParsing(false) explicitly here. It's really annoying that setParsing(true) is done
              inside DOM::DocumentImpl and setParsing(false) is done by KHTMLPart, so that should be fixed
              some day, but for now this is the way to do it.
      
              Test cases added:
              * layout-tests/fast/events/xsl-onload-expected.txt: Added.
              * layout-tests/fast/events/xsl-onload.xhtml: Added.
              * layout-tests/fast/events/xsl-onload.xsl: Added.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@9225 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a282b6c7
    • sullivan's avatar
      Reviewed by Darin · bc4a06b7
      sullivan authored
              * WebCore-tests.exp:
              took out symbol __ZNK5QChar7isPunctEv; it was obsolete and causing build trouble
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@9224 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      bc4a06b7
    • darin's avatar
      Reviewed by Adele. · cc839bb8
      darin authored
              - remove HAVE_ICU_LIBRARY ifdefs
      
              * khtml/rendering/render_text.cpp: Just use ICU all the time; no ifdef.
              * kwq/KWQKURL.mm: Ditto.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@9223 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      cc839bb8
  8. 26 May, 2005 6 commits
    • darin's avatar
      Reviewed by me, patch by Mitz Pettel. · 6f05b4c6
      darin authored
              - fixed <rdar://problem/4106907> bidi algorithm bug fixed for KHTML should be fixed in WebCore too
      
              * khtml/rendering/bidi.cpp: (khtml::RenderBlock::bidiReorderLine): Integrated the patch that Mitz did
              for the KDE bug, details at <http://www.mitzpettel.com/software/WebCorePatch2.html>.
      
              Test cases added:
              * layout-tests/fast/text/international/bidi-neutral-directionality-paragraph-start-expected.txt: Added.
              * layout-tests/fast/text/international/bidi-neutral-directionality-paragraph-start.html: Added.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@9222 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      6f05b4c6
    • darin's avatar
      Reviewed by John. · 811cc134
      darin authored
              - fix build failure from when I removed WebCoreUnicode
      
              * WebCoreSupport.subproj/WebTextRenderer.m: Removed import of WebUnicode.h that I missed.
              (-[WebTextRenderer _convertUnicodeCharacters:length:toGlyphs:]): Switch from our own macros
              to the ICU macros for surrogate pairs.
              (widthForNextCharacter): Ditto.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@9221 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      811cc134
    • harrison's avatar
      <rdar://problem/4120518> Mail: control-T in an empty message crashes mail · bf0d2189
      harrison authored
              * WebCoreSupport.subproj/WebBridge.m:
              (-[WebBridge issueTransposeCommand]):
              New, to support transpose in JS.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@9220 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      bf0d2189
    • darin's avatar
      top level: · e34afab6
      darin authored
              Reviewed by Richard and Dave Harrison.
      
              * configure.in: Turn off exceptions and RTTI for C++ test programs.
              This makes them work with WebCore, which now has them off, under gcc 4.0.
      
      Tests:
      
              Reviewed by Richard and Dave Harrison.
      
              * qt/Makefile.am: Add -licucore so we can continue to compile with the changed QChar.
      
      WebCore:
      
              Reviewed by Richard and Dave Harrison.
              No new test cases needed for this change.
      
              - eliminate WebCoreUnicode and use ICU directly instead
              - fixed compiling with gcc 4.0 (was broken for Development only)
      
              * WebCore.exp: Removed the WebCoreXXXFunction exports.
              * WebCore-tests.exp: Removed some QChar functions that are now inlines.
              Removed some typeinfo exports that are no longer appropriate since we use -fno-rtti.
      
              * kwq/KWQString.h:
              (QChar::isDigit): Changed to call u_isdigit when non-ASCII. We should probably phase
              this out since it's only used in places where we don't want to handle non-ASCII decimal digits.
              (QChar::isLetter): Changed to call u_isalpha when non-ASCII.
              (QChar::isNumber): Changed to call u_isdigit when non-ASCII. This probably should be removed, since
              we always want to call isDigit instead.
              (QChar::isLetterOrNumber): Changed to call u_isalnum when non-ASCII.
              (QChar::isPunct): Changed to call u_ispunct when non-ASCII.
              (QChar::digitValue): Changed to call u_charDigitValue when not '0'-'9'. We should probably phase
              this out since it's only used in places where we don't want to handle non-ASCII decimal digits.
              (QChar::lower): Changed to call u_tolower when non-ASCII.
              (QChar::upper): Changed to call u_toupper when non-ASCII.
              (QChar::direction): Made inline. Calls u_charDirection.
              (QChar::mirrored): Made inline. Calls u_isMirrored.
              (QChar::mirroredChar): Made inline. Calls u_charMirror.
      
              * kwq/KWQChar.mm: Removed.
              * kwq/WebCoreUnicode.cpp: Removed.
              * kwq/WebCoreUnicode.h: Removed.
      
              * WebCore.pbproj/project.pbxproj: Removed files.
      
      WebKit:
      
              Reviewed by Richard and Dave Harrison.
      
              - eliminate WebCoreUnicode and use ICU directly instead
      
              * Misc.subproj/WebKitNSStringExtras.m: (canUseFastRenderer): Use u_charDirection directly.
              * WebCoreSupport.subproj/WebTextRenderer.m: Removed import of <WebCore/WebCoreUnicode.h>.
              * WebView.subproj/WebHTMLView.m: (+[WebHTMLView initialize]): Removed call to WebKitInitializeUnicode.
      
              * Misc.subproj/WebUnicode.h: Removed.
              * Misc.subproj/WebUnicode.m: Removed.
              * Misc.subproj/WebUnicodeTables.m: Removed.
      
              * WebKit.pbproj/project.pbxproj: Removed files.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@9219 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e34afab6
    • harrison's avatar
      Missed this in previous commit. · f5c6136b
      harrison authored
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@9218 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f5c6136b
    • harrison's avatar
      Reviewed by John. · 86554799
      harrison authored
              <rdar://problem/4120518> Mail: control-T in an empty message crashes mail
      
              * kwq/WebCoreBridge.mm:
              (-[WebCoreBridge rangeOfCharactersAroundCaret]):
              Nil-check result of VisiblePosition previous() and next().
      
              * khtml/editing/visible_position.cpp:
              (khtml::VisiblePosition::previous):
              (khtml::VisiblePosition::previousVisiblePosition):
              Make sure previous() does not return the original position.  Also, simplified.
              Commented odd, but required, behavior in previousVisiblePosition().
      
              * khtml/editing/visible_units.cpp:
              (khtml::startOfEditableContent):
              (khtml::endOfEditableContent):
              Removed redundant check for isEditableContent().
      
              * khtml/editing/jsediting.cpp:
              * khtml/khtml_part.cpp:
              (KHTMLPart::transpose):
              * khtml/khtml_part.h:
              * kwq/KWQKHTMLPart.h:
              * kwq/KWQKHTMLPart.mm:
              (KWQKHTMLPart::issueTransposeCommand):
              * layout-tests/editing/editing.js:
              * kwq/WebCoreBridge.h:
              Add support for transpose command in JavaScript and therefore layout tests.
      
              * layout-tests/editing/deleting/transpose-empty-expected.txt: Added.
              * layout-tests/editing/deleting/transpose-empty.html: Added.
              New test for this bug.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@9217 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      86554799
  9. 24 May, 2005 6 commits
    • rjw's avatar
      Fixed <rdar://problem/4127061> <canvas> backing store should be zero filled · b098c101
      rjw authored
      	Use calloc instead of malloc to ensure zero filled backing store.
      
              Reviewed by Darin.
      
              * khtml/rendering/render_canvasimage.cpp:
              (RenderCanvasImage::createDrawingContext):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@9213 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b098c101
    • rjw's avatar
      Fixed <rdar://problem/4097289> -[WebView elementAtPoint:] failing when... · 2c5ef82e
      rjw authored
      	Fixed <rdar://problem/4097289> -[WebView elementAtPoint:] failing when WebView is nested and offset
      
      	Code to determine the correct frame under the window point was
      	converting the point incorrectly.
      
              Reviewed by Chris.
      
              * WebView.subproj/WebView.m:
              (-[WebView _frameViewAtWindowPoint:]):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@9212 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2c5ef82e
    • sullivan's avatar
      Reviewed by Dave Hyatt. · b711694d
      sullivan authored
              - fixed these bugs:
              <rdar://problem/4118510> Textareas with a vertical scroll bar should have their resize corner under the scroll bar
              <rdar://problem/4118523> Resize image in textareas is drawn repeatedly when scrolling vertically with scrollbar
      
              Test cases added: none; doesn't affect page layout
      
              * kwq/KWQTextArea.h:
              added inInitWithFrame ivar
              * kwq/KWQTextArea.mm:
              (+[KWQTextArea _resizeCornerImage]):
              moved here from KWQTextAreaTextView; now it's a class method so we only look up the image once.
              (-[KWQTextArea initWithFrame:]):
              set and clear inInitWithFrame ivar, used by -tile
              (-[KWQTextArea _isResizableByUser]):
              renamed with an underscore for consistency
              (-[KWQTextArea _textViewShouldHandleResizing]):
              new method, returns YES if the textarea is user-resizable and the enclosed textview is responsible for drawing
              and tracking the resize corner.
              (-[KWQTextArea tile]):
              shrink the vertical scroller if appropriate to account for the resize corner
              (-[KWQTextArea _resizeCornerRect]):
              new method, returns the bottom-right corner rect, where the resize image goes
              (-[KWQTextArea _trackResizeFromMouseDown:]):
              moved here from KWQTextAreaTextView. The only changes were to move the [NSCursor set] call inside here (was in
              the caller), and to use self where it was using [self _enclosingTextArea], and to move a comment in here that
              was in the caller
              (-[KWQTextArea mouseDown:]):
              track resizing if appropriate
              (-[KWQTextArea drawRect:]):
              draw the resize corner if appropriate
              (-[KWQTextAreaTextView _resizeCornerRect]):
              get the resize image from KWQTextArea
              (-[KWQTextAreaTextView resetCursorRects]):
              check _textViewShouldHandleResizing
              (-[KWQTextAreaTextView drawRect:]):
              ditto
              (-[KWQTextAreaTextView mouseDown:]):
              ditto; also, make the textarea handle the resize tracking now
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@9210 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b711694d
    • darin's avatar
      Added a missing bug number. · 0dc44ca8
      darin authored
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@9203 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0dc44ca8
    • darin's avatar
      - another gcc 4.0 fix · ec2ba64f
      darin authored
              No new test cases needed.
      
              * khtml/dom/dom2_events.cpp: Moved constants out of the KHTML_NO_CPLUSPLUS_DOM #if.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@9202 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ec2ba64f
    • darin's avatar
      Reviewed by Vicki. · 44ce2126
      darin authored
              * WebCore.exp: Added exports for many classes in the public DOM headers that were omitted before.
              Also removed one symbol that was listed twice.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@9201 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      44ce2126