1. 02 Oct, 2006 5 commits
    • mjs's avatar
      Reviewed by Alice. · d3da1eb3
      mjs authored
              
              - take away direct knowledge of WebFrame from WebDataSource
      
              * Loader/WebDocumentLoadState.h:
              * Loader/WebDocumentLoadState.m:
              (-[WebDocumentLoadState setFrameLoader:]):
              (-[WebDocumentLoadState detachFromFrameLoader]):
              * Loader/WebFrameLoader.m:
              (-[WebFrameLoader _setDocumentLoadState:]):
              (-[WebFrameLoader _setProvisionalDocumentLoadState:]):
              * WebView/WebDataSource.m:
              * WebView/WebDataSourceInternal.h:
              * WebView/WebDocumentLoadStateMac.m:
              (-[WebDocumentLoadStateMac detachFromFrameLoader]):
              * WebView/WebFrame.m:
              (-[WebFrame _loadDataSource:withLoadType:formState:]):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@16730 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d3da1eb3
    • mjs's avatar
      Reviewed by Darin. · 67d1929c
      mjs authored
              
              - move a big slice of data and logic from WebDataSource to WebDocumentLoadState
              
              * Loader/WebDocumentLoadState.h:
              * Loader/WebDocumentLoadState.m:
              (-[WebDocumentLoadState initWithRequest:]):
              (-[WebDocumentLoadState dealloc]):
              (-[WebDocumentLoadState originalRequestCopy]):
              (-[WebDocumentLoadState request]):
              (-[WebDocumentLoadState replaceRequestURLForAnchorScrollWithURL:]):
              (-[WebDocumentLoadState setRequest:]):
              (-[WebDocumentLoadState setResponse:]):
              (-[WebDocumentLoadState isStopping]):
              (-[WebDocumentLoadState bridge]):
              (-[WebDocumentLoadState setMainDocumentError:]):
              (-[WebDocumentLoadState mainDocumentError]):
              (-[WebDocumentLoadState clearErrors]):
              (-[WebDocumentLoadState mainReceivedError:complete:]):
              (-[WebDocumentLoadState stopLoading]):
              (-[WebDocumentLoadState setupForReplace]):
              (-[WebDocumentLoadState commitIfReady]):
              (-[WebDocumentLoadState finishedLoading]):
              (-[WebDocumentLoadState setCommitted:]):
              (-[WebDocumentLoadState isCommitted]):
              (-[WebDocumentLoadState setLoading:]):
              (-[WebDocumentLoadState isLoading]):
              (-[WebDocumentLoadState commitLoadWithData:]):
              (-[WebDocumentLoadState doesProgressiveLoadWithMIMEType:]):
              (-[WebDocumentLoadState receivedData:]):
              (-[WebDocumentLoadState setupForReplaceByMIMEType:]):
              (-[WebDocumentLoadState updateLoading]):
              (-[WebDocumentLoadState response]):
              * Loader/WebFrameLoader.h:
              * Loader/WebFrameLoader.m:
              (-[WebFrameLoader activeDocumentLoadState]):
              (-[WebFrameLoader activeDataSource]):
              (-[WebFrameLoader _archivedSubresourceForURL:]):
              (-[WebFrameLoader addPlugInStreamLoader:]):
              (-[WebFrameLoader removePlugInStreamLoader:]):
              (-[WebFrameLoader addSubresourceLoader:]):
              (-[WebFrameLoader removeSubresourceLoader:]):
              (-[WebFrameLoader documentLoadState]):
              (-[WebFrameLoader provisionalDocumentLoadState]):
              (-[WebFrameLoader stopLoading]):
              (-[WebFrameLoader _originalRequest]):
              (-[WebFrameLoader _receivedData:]):
              (-[WebFrameLoader _setRequest:]):
              (-[WebFrameLoader bridge]):
              (-[WebFrameLoader _handleFallbackContent]):
              (-[WebFrameLoader _isStopping]):
              (-[WebFrameLoader _setupForReplaceByMIMEType:]):
              (-[WebFrameLoader _setResponse:]):
              (-[WebFrameLoader _mainReceivedError:complete:]):
              (-[WebFrameLoader _finishedLoading]):
              (-[WebFrameLoader didReceiveServerRedirectForProvisionalLoadForFrame]):
              (-[WebFrameLoader finishedLoadingDocumentLoadState:]):
              (-[WebFrameLoader commitProvisitionalLoad]):
              (-[WebFrameLoader committedLoadWithDocumentLoadState:data:]):
              (-[WebFrameLoader isReplacing]):
              (-[WebFrameLoader setReplacing]):
              (-[WebFrameLoader revertToProvisionalWithDocumentLoadState:]):
              (-[WebFrameLoader documentLoadState:setMainDocumentError:]):
              (-[WebFrameLoader documentLoadState:mainReceivedCompleteError:]):
              (-[WebFrameLoader finalSetupForReplaceWithDocumentLoadState:]):
              * WebView/WebDataSource.m:
              (-[WebDataSourcePrivate dealloc]):
              (-[WebDataSource _prepareForLoadStart]):
              (-[WebDataSource _mainDocumentError]):
              (-[WebDataSource _finishedLoading]):
              (-[WebDataSource _receivedData:]):
              (-[WebDataSource _setMainDocumentError:]):
              (-[WebDataSource _clearUnarchivingState]):
              (-[WebDataSource _revertToProvisionalState]):
              (-[WebDataSource _receivedMainResourceError:complete:]):
              (-[WebDataSource _startLoading]):
              (-[WebDataSource _loadFromPageCache:]):
              (-[WebDataSource _bridge]):
              (-[WebDataSource _setPrimaryLoadComplete:]):
              (-[WebDataSource _URLForHistory]):
              (-[WebDataSource _setTitle:]):
              (-[WebDataSource _initWithDocumentLoadState:]):
              (-[WebDataSource request]):
              (-[WebDataSource response]):
              (-[WebDataSource isLoading]):
              (-[WebDataSource webArchive]):
              * WebView/WebDataSourceInternal.h:
              * WebView/WebDocumentLoadStateMac.m:
              (-[WebDocumentLoadStateMac initWithRequest:]):
              * WebView/WebFrame.m:
              (-[WebFrame _createItem:]):
              (-[WebFrame _receivedMainResourceError:]):
              (-[WebFrame _transitionToCommitted:]):
              (-[WebFrame _commitProvisionalLoad:]):
              (-[WebFrame _checkLoadCompleteForThisFrame]):
              (-[WebFrame _loadItem:withLoadType:]):
              (-[WebFrame _continueFragmentScrollAfterNavigationPolicy:formState:]):
              (-[WebFrame _didReceiveServerRedirectForProvisionalLoadForFrame]):
              (-[WebFrame _provisionalLoadStarted]):
              * WebView/WebFrameInternal.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@16725 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      67d1929c
    • mjs's avatar
      Reviewed by Anders. · 39db9c21
      mjs authored
              
              - remove webFrame field from WebDataSourcePrivate, it can get it from WebDocumentLoadState now
      
              * Loader/WebDocumentLoadState.h:
              * Loader/WebDocumentLoadState.m:
              (-[WebDocumentLoadState frameLoader]):
              * WebView/WebDataSource.m:
              (-[WebDataSourcePrivate dealloc]):
              (-[WebDataSource _revertToProvisionalState]):
              (-[WebDataSource _setupForReplaceByMIMEType:]):
              (-[WebDataSource _updateLoading]):
              (-[WebDataSource _startLoading]):
              (-[WebDataSource _setWebFrame:]):
              (-[WebDataSource _defersCallbacksChanged]):
              (-[WebDataSource _stopLoading]):
              (-[WebDataSource _webView]):
              (-[WebDataSource _stopLoadingWithError:]):
              (-[WebDataSource _setPrimaryLoadComplete:]):
              (-[WebDataSource dealloc]):
              (-[WebDataSource webFrame]):
              (-[WebDataSource isLoading]):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@16710 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      39db9c21
    • mjs's avatar
      Reviewed by Anders. · a6a3baee
      mjs authored
              
              - fix crash on back/forward - reattach WebDocumentLoadState to data source when needed
      
              * WebView/WebDataSource.m:
              (-[WebDataSource _setWebFrame:]):
              (-[WebDataSource _initWithDocumentLoadState:]):
              * WebView/WebDataSourceInternal.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@16709 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a6a3baee
    • mjs's avatar
      Reviewed by Brady and Oliver. · 64e6db90
      mjs authored
              
              - move things around so that WebDataSource and WebDocumentLoadState know about each other in
              the right way. This lines things up to move nearly all functionality down to WebDocumentLoadState.
      
              * Loader/WebDocumentLoadState.h:
              * Loader/WebDocumentLoadState.m:
              (-[WebDocumentLoadState initWithRequest:]):
              (-[WebDocumentLoadState dealloc]):
              (-[WebDocumentLoadState originalRequest]):
              * Loader/WebFrameLoader.h:
              * Loader/WebFrameLoader.m:
              (-[WebFrameLoader dealloc]):
              (-[WebFrameLoader addSubresourceLoader:]):
              (-[WebFrameLoader startLoadingMainResourceWithRequest:identifier:]):
              (-[WebFrameLoader dataSource]):
              (-[WebFrameLoader _setDocumentLoadState:]):
              (-[WebFrameLoader policyDataSource]):
              (-[WebFrameLoader _setPolicyDocumentLoadState:]):
              (-[WebFrameLoader clearDataSource]):
              (-[WebFrameLoader provisionalDataSource]):
              (-[WebFrameLoader _setProvisionalDocumentLoadState:]):
              (-[WebFrameLoader _clearProvisionalDataSource]):
              (-[WebFrameLoader _setState:]):
              (-[WebFrameLoader clearProvisionalLoad]):
              (-[WebFrameLoader commitProvisionalLoad]):
              (-[WebFrameLoader stopLoading]):
              (-[WebFrameLoader startLoading]):
              (-[WebFrameLoader startProvisionalLoad:]):
              (-[WebFrameLoader setupForReplace]):
              (-[WebFrameLoader activeDocumentLoadState]):
              (-[WebFrameLoader activeDataSource]):
              (-[WebFrameLoader _loadRequest:archive:]):
              (-[WebFrameLoader _loadRequest:triggeringAction:loadType:formState:]):
              (-[WebFrameLoader _reloadAllowingStaleDataWithOverrideEncoding:]):
              (-[WebFrameLoader reload]):
              * WebKit.xcodeproj/project.pbxproj:
              * WebView/WebDataSource.m:
              (-[WebDataSourcePrivate dealloc]):
              (-[WebDataSource _startLoading]):
              (-[WebDataSource _setWebFrame:]):
              (-[WebDataSource _documentLoadState]):
              (-[WebDataSource _initWithDocumentLoadState:]):
              (-[WebDataSource initWithRequest:]):
              (-[WebDataSource initialRequest]):
              (-[WebDataSource unreachableURL]):
              * WebView/WebDataSourceInternal.h:
              * WebView/WebFrame.m:
              (-[WebFramePrivate dealloc]):
              (-[WebFrame _continueLoadRequestAfterNavigationPolicy:formState:]):
              (-[WebFrame _loadDataSource:withLoadType:formState:]):
              (-[WebFrame _policyDataSource]):
              (-[WebFrame _shouldReloadToHandleUnreachableURLFromRequest:]):
              (-[WebFrame _dataSourceForDocumentLoadState:]):
              (-[WebFrame _createDocumentLoadStateWithRequest:]):
              * WebView/WebFrameInternal.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@16707 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      64e6db90
  2. 17 Sep, 2006 1 commit
    • beidson's avatar
      WebCore: · 20704b69
      beidson authored
              Reviewed by Hyatt
      
              Pruning code relating to WebKit's icon loader
      
              * bridge/mac/WebCoreIconDatabaseBridge.h:
              * bridge/mac/WebCoreIconDatabaseBridge.mm:
              * loader/icon/IconDatabase.h:
              * page/Frame.cpp:
              (WebCore::Frame::endIfNotLoading): Moved a FIXME in from WebKit's IconLoader to 
              its new home
      
      WebKit:
      
              Reviewed by Hyatt
      
              WebIconLoader is dead, long live WebCore::IconLoader
              (code prune)
      
              * Loader/WebFrameLoader.h:
              * Loader/WebFrameLoader.m:
              (-[WebFrameLoader dealloc]):
              (-[WebFrameLoader commitProvisionalLoad]):
              * Loader/WebIconLoader.h: Removed.
              * Loader/WebIconLoader.m: Removed.
              * Misc/WebIconDatabase.h:
              * Misc/WebIconDatabase.m:
              * Misc/WebIconDatabasePrivate.h:
              * WebCoreSupport/WebFrameBridge.m:
              (-[WebFrameBridge notifyIconChanged:]):
              * WebCoreSupport/WebIconDatabaseBridge.h:
              * WebCoreSupport/WebIconDatabaseBridge.m:
              (-[WebIconDatabaseBridge _init]):
              (-[WebIconDatabaseBridge _setIconData:forIconURL:]):
              (-[WebIconDatabaseBridge _setHaveNoIconForIconURL:]):
              * WebKit.exp:
              * WebKit.xcodeproj/project.pbxproj:
              * WebView/WebDataSource.m:
              (-[WebDataSourcePrivate dealloc]):
              (-[WebDataSource _stopLoading]):
              (-[WebDataSource _setPrimaryLoadComplete:]):
              * WebView/WebDataSourceInternal.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@16395 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      20704b69
  3. 14 Sep, 2006 1 commit
    • beidson's avatar
      WebCore: · 2212efda
      beidson authored
              Reviewed by Maciej
      
              Icon loads now take place in WebCore
      
              * WebCore.xcodeproj/project.pbxproj:
              * bridge/BrowserExtension.h:
              * bridge/mac/BrowserExtensionMac.h:
              * bridge/mac/BrowserExtensionMac.mm:
              - Moved enforcement of a Mozilla Favicon extension elsewhere
              
              * bridge/mac/FrameMac.h: 
              * bridge/mac/FrameMac.mm: 
              (WebCore::FrameMac::originalRequestURL):
              - Added accessor to "original request URL"
              
              * bridge/mac/WebCoreFrameBridge.h: 
              - Removed methods to set the iconURL as all loading is now done in WebCore
              - Added call throughs to notify WebKit an Icon is done loading, and a to get the original request URL
              
              * html/HTMLLinkElement.cpp: 
              (WebCore::HTMLLinkElement::process):
              - Moved enforcement of a Mozilla Favicon extension elsewhere
              
              * loader/icon/IconDatabase.cpp:
              (WebCore::IconDatabase::setIconURLForPageURL):
              - Changed an ASSERT to correctly handle a sketchy (invalid) situation
      
              * loader/icon/IconLoader.h: Added.
              * loader/icon/IconLoader.cpp: Added.
              (IconLoader::IconLoader):
              (IconLoader::createForFrame):
              - Static factory method with a private constructor to enforce 
                "you MUST have a Frame to create an IconLoader" semantics
              (IconLoader::~IconLoader):
              (IconLoader::startLoading):
              (IconLoader::stopLoading):
              (IconLoader::receivedData):
              - ResourceLoaderClient delegate
              (IconLoader::receivedAllData):
              - Ditto
      
              * loader/mac/IconLoaderMac.mm: Added.
              (IconLoader::receivedResponse):
              (IconLoader::notifyIconChanged):
              - For now, these are platform specific methods
              - One to get the HTTP response code of an icon load
              - The other to call through to the app when the icon has changed (loaded)
      
              * page/Frame.h:
              * page/Frame.cpp:
              (WebCore::Frame::iconURL):
              (WebCore::Frame::setIconURL):
              - Frame objects now have an inherent icon URL and a way to calculate/access it
              (WebCore::Frame::endIfNotLoading):
              - This is where we actually kick off the IconLoader
              (WebCore::Frame::stop):
              - Added call to stop loading the icon
      
              * page/FramePrivate.h:
              (WebCore::FramePrivate::FramePrivate):
              (WebCore::FramePrivate::~FramePrivate):
              - Added the icon URL as a private member
              - Added the IconLoader as a private member, and clean it up on deletion
      
              * platform/mac/ResourceLoaderMac.mm:
              (WebCore::ResourceLoader::start):  Added a valuable ASSERT
      
      WebKit:
      
              Reviewed by Maciej
      
              Add infrastructure to support icon loads taking place in WebCore
              Will remove WebKit icon loaders in a later patch
      
              * WebCoreSupport/WebFrameBridge.m:
              (-[WebFrameBridge notifyIconChanged:]):
              (-[WebFrameBridge originalRequestURL]):
              - Nuked two old, obsolete methods
              - Added bridge for notifying of an icon change
              - Added bridge for getting the "original request URL" which is still needed
                until that info is available in the WebCore loaders
      
              * WebView/WebDataSource.m:
              (-[WebDataSource _loadIcon]):
              - Empty body just for now, as it still gets called - next patch will prune all the old impl out
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@16360 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2212efda
  4. 08 Sep, 2006 1 commit
    • tomernic's avatar
      Reviewed by Brady Eidson. · 3893d669
      tomernic authored
              Rolled out Maciej's code cleanup from 8/22.  It turns out that keeping the "loading" flag
              is a useful optimization, as it avoids many Objective-C method calls while polling resources
              for their load state.
      
              This fixes a 3-4% PLT performance regression (as measured on my MacBook Pro).
      
              * Loader/WebFrameLoader.m:
              (-[WebFrameLoader addPlugInStreamLoader:]):
              (-[WebFrameLoader removePlugInStreamLoader:]):
              (-[WebFrameLoader addSubresourceLoader:]):
              (-[WebFrameLoader removeSubresourceLoader:]):
              * WebView/WebDataSource.m:
              (-[WebDataSourcePrivate dealloc]):
              (-[WebDataSource _prepareForLoadStart]):
              (-[WebDataSource _setLoading:]):
              (-[WebDataSource _updateLoading]):
              (-[WebDataSource _startLoading]):
              (-[WebDataSource _stopLoading]):
              (-[WebDataSource _setPrimaryLoadComplete:]):
              (-[WebDataSource isLoading]):
              * WebView/WebDataSourceInternal.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@16271 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3893d669
  5. 04 Sep, 2006 1 commit
  6. 24 Aug, 2006 1 commit
  7. 23 Aug, 2006 3 commits
    • mjs's avatar
      Reviewed by Adele. · 33eec0f5
      mjs authored
              
              - started factoring most of the guts of WebDataSource into a new class
              
              WebDocumentLoadState is decoupled from the rest of WebKit and will
              be moved down to WebCore. I only moved one of the data fields of
              WebDataSource for now.
      
              * Loader/WebDocumentLoadState.h: Added.
              * Loader/WebDocumentLoadState.m: Added.
              (-[WebDocumentLoadState initWithRequest:]): New class.
              (-[WebDocumentLoadState dealloc]):
              (-[WebDocumentLoadState setFrameLoader:]):
              (-[WebDocumentLoadState setMainResourceData:]):
              (-[WebDocumentLoadState mainResourceData]):
              * Loader/WebFrameLoader.m:
              (-[WebFrameLoader _setDataSource:]): Remove redundant _setWebFrame: call,
              it would have been called already by this point.
              (-[WebFrameLoader _setProvisionalDataSource:]): ditto.
              * WebKit.xcodeproj/project.pbxproj:
              * WebView/WebDataSource.m:
              (-[WebDataSourcePrivate dealloc]):
              (-[WebDataSource _setWebFrame:]):
              (-[WebDataSource _setPrimaryLoadComplete:]):
              (-[WebDataSource initWithRequest:]):
              (-[WebDataSource data]):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@16004 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      33eec0f5
    • mjs's avatar
      Reviewed by Adele. · 646a7804
      mjs authored
              
              - refactoring of WebDataSource in preparation for moving a bunch of it to a new class
              
              - minimize WebDataSourceInternal.h to be only methods called from outside WebDataSource
              - reduce Private category implementation to be only the SPI methods
              - make new Internal and FileInternal categories which contain the
              remainder (depending on whether they are called from outside of
              WebDataSource)
      
              * WebView/WebDataSource.m:
              (-[WebDataSource _setMainDocumentError:]):
              (addTypesFromClass):
              (+[WebDataSource _representationClassForMIMEType:]):
              (-[WebDataSource _commitIfReady]):
              (-[WebDataSource _commitLoadWithData:]):
              (-[WebDataSource _doesProgressiveLoadWithMIMEType:]):
              (-[WebDataSource _addResponse:]):
              (-[WebDataSource _revertToProvisionalState]):
              (-[WebDataSource _mainDocumentError]):
              (-[WebDataSource _addSubframeArchives:]):
              (-[WebDataSource _fileWrapperForURL:]):
              (+[WebDataSource _repTypesAllowImageTypeOmission:]):
              (-[WebDataSource _decidePolicyForMIMEType:decisionListener:]):
              (-[WebDataSource _finishedLoading]):
              (-[WebDataSource _setResponse:]):
              (-[WebDataSource _setRequest:]):
              (-[WebDataSource _setupForReplaceByMIMEType:]):
              (-[WebDataSource _receivedMainResourceError:complete:]):
              (-[WebDataSource _mainReceivedError:complete:]):
              (-[WebDataSource _defersCallbacks]):
              (-[WebDataSource _downloadWithLoadingConnection:request:response:proxy:]):
              (-[WebDataSource _didFailLoadingWithError:forResource:]):
              (-[WebDataSource _didFinishLoadingForResource:]):
              (-[WebDataSource _didReceiveData:contentLength:forResource:]):
              (-[WebDataSource _didReceiveResponse:forResource:]):
              (-[WebDataSource _didCancelAuthenticationChallenge:forResource:]):
              (-[WebDataSource _didReceiveAuthenticationChallenge:forResource:]):
              (-[WebDataSource _willSendRequest:forResource:redirectResponse:]):
              (-[WebDataSource _identifierForInitialRequest:]):
              (-[WebDataSource _archivedSubresourceForURL:]):
              (-[WebDataSource _startLoading]):
              (-[WebDataSource _stopRecordingResponses]):
              (-[WebDataSource _loadingStartedTime]):
              (-[WebDataSource _replaceSelectionWithArchive:selectReplacement:]):
              (-[WebDataSource _documentFragmentWithArchive:]):
              (-[WebDataSource _documentFragmentWithImageResource:]):
              (-[WebDataSource _imageElementWithImageResource:]):
              (-[WebDataSource _title]):
              (-[WebDataSource _isStopping]):
              (-[WebDataSource _setWebFrame:]):
              (-[WebDataSource _URL]):
              (-[WebDataSource _loadFromPageCache:]):
              (-[WebDataSource _popSubframeArchiveWithName:]):
              (-[WebDataSource _setIsClientRedirect:]):
              (-[WebDataSource _setURL:]):
              (-[WebDataSource _setLastCheckedRequest:]):
              (-[WebDataSource _defersCallbacksChanged]):
              (-[WebDataSource _lastCheckedRequest]):
              (-[WebDataSource _stopLoading]):
              (-[WebDataSource _bridge]):
              (-[WebDataSource _webView]):
              (-[WebDataSource _triggeringAction]):
              (-[WebDataSource _setTriggeringAction:]):
              (-[WebDataSource __adoptRequest:]):
              (-[WebDataSource _isDocumentHTML]):
              (-[WebDataSource _stopLoadingWithError:]):
              (-[WebDataSource _setPrimaryLoadComplete:]):
              (-[WebDataSource _responses]):
              (-[WebDataSource _makeRepresentation]):
              (-[WebDataSource _isClientRedirect]):
              (-[WebDataSource _originalRequest]):
              (-[WebDataSource _URLForHistory]):
              (-[WebDataSource _addToUnarchiveState:]):
              (-[WebDataSource _setOverrideEncoding:]):
              (-[WebDataSource _setIconURL:]):
              (-[WebDataSource _setIconURL:withType:]):
              (-[WebDataSource _overrideEncoding]):
              (-[WebDataSource _setTitle:]):
              * WebView/WebDataSourceInternal.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@16003 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      646a7804
    • mjs's avatar
      Reviewed by Brady. · 95f87552
      mjs authored
              
              - remove "loading" flag from WebDataSource and code that manages it; it is redundat.
      
              * Loader/WebFrameLoader.m:
              (-[WebFrameLoader addPlugInStreamLoader:]):
              (-[WebFrameLoader removePlugInStreamLoader:]):
              (-[WebFrameLoader addSubresourceLoader:]):
              (-[WebFrameLoader removeSubresourceLoader:]):
              * WebView/WebDataSource.m:
              (-[WebDataSourcePrivate dealloc]):
              (-[WebDataSource _setPrimaryLoadComplete:]):
              (-[WebDataSource _stopLoading]):
              (-[WebDataSource _prepareForLoadStart]):
              (-[WebDataSource _startLoading]):
              (-[WebDataSource isLoading]):
              * WebView/WebDataSourceInternal.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@15986 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      95f87552
  8. 22 Aug, 2006 2 commits
    • mjs's avatar
      WebCore: · eccdb131
      mjs authored
              Reviewed by Anders.
      
              - added some SPI indirections to support the following in WebKit/Loader:
                  - pull more WebDataSource code into WebFrameLoader
                  - make WebMainResourceLoader not depend on WebKit or on SPI
      
              * WebCore.exp:
              * WebCore.xcodeproj/project.pbxproj:
              * platform/mac/WebCoreSystemInterface.h:
              * platform/mac/WebCoreSystemInterface.mm:
      
      WebKit:
      
              Reviewed by Anders.
              
              - pull more WebDataSource code into WebFrameLoader
              - make WebMainResourceLoader not depend on WebKit or on SPI
      
              * Loader/WebFrameLoader.h:
              * Loader/WebFrameLoader.m:
              (-[WebFrameLoader _downloadWithLoadingConnection:request:response:proxy:]):
              (-[WebFrameLoader _updateIconDatabaseWithURL:]):
              (-[WebFrameLoader _notifyIconChanged:]):
              (-[WebFrameLoader _iconLoaderReceivedPageIcon:]):
              (-[WebFrameLoader _checkNavigationPolicyForRequest:andCall:withSelector:]):
              (-[WebFrameLoader _checkContentPolicyForMIMEType:andCall:withSelector:]):
              (-[WebFrameLoader cancelContentPolicy]):
              * Loader/WebIconLoader.m:
              (-[WebIconLoader didFinishLoading]):
              * Loader/WebLoader.m:
              (-[NSURLProtocol loadWithRequest:]):
              (-[NSURLProtocol setDefersCallbacks:]):
              * Loader/WebMainResourceLoader.h:
              * Loader/WebMainResourceLoader.m:
              (-[WebMainResourceLoader initWithFrameLoader:]):
              (-[WebMainResourceLoader dealloc]):
              (-[WebMainResourceLoader cancelWithError:]):
              (-[WebMainResourceLoader continueAfterNavigationPolicy:formState:]):
              (-[WebMainResourceLoader willSendRequest:redirectResponse:]):
              (-[WebMainResourceLoader continueAfterContentPolicy:]):
              (-[WebMainResourceLoader checkContentPolicy]):
              (-[WebMainResourceLoader didReceiveResponse:]):
              * Plugins/WebPluginContainerCheck.m:
              * WebCoreSupport/WebSystemInterface.m:
              (InitWebCoreSystemInterface):
              * WebView/WebDataSource.m:
              (-[WebDataSource _loadIcon]):
              (-[WebDataSource _cancelledError]):
              (+[WebDataSource _repTypesAllowImageTypeOmission:]):
              (+[WebDataSource _representationClassForMIMEType:]):
              (-[WebDataSource _commitLoadWithData:]):
              (-[WebDataSource _isDocumentHTML]):
              * WebView/WebDataSourceInternal.h:
              * WebView/WebFramePrivate.h:
              * WebView/WebPolicyDelegate.m:
              * WebView/WebPolicyDelegatePrivate.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@15976 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      eccdb131
    • mjs's avatar
      Reviewed by Brady. · 59893088
      mjs authored
              
              - move more code from WebDataSource to WebFrameLoader
              
              Also marked a few more methods in WebDataSource as likely MOVABLE in a future round, since they do not
              use any of WebDataSource's private data.
      
              * Loader/WebFrameLoader.h:
              * Loader/WebFrameLoader.m:
              (-[WebFrameLoader addPlugInStreamLoader:]):
              (-[WebFrameLoader removePlugInStreamLoader:]):
              (-[WebFrameLoader addSubresourceLoader:]):
              (-[WebFrameLoader removeSubresourceLoader:]):
              (-[WebFrameLoader _didReceiveAuthenticationChallenge:forResource:]):
              (-[WebFrameLoader _didCancelAuthenticationChallenge:forResource:]):
              (-[WebFrameLoader _didReceiveResponse:forResource:]):
              (-[WebFrameLoader _didReceiveData:contentLength:forResource:]):
              (-[WebFrameLoader _didFinishLoadingForResource:]):
              (-[WebFrameLoader _didFailLoadingWithError:forResource:]):
              (-[WebFrameLoader _privateBrowsingEnabled]):
              (-[WebFrameLoader _finishedLoadingResource]):
              (-[WebFrameLoader _receivedError:]):
              (-[WebFrameLoader _finishedLoading]):
              * Loader/WebMainResourceLoader.m:
              (-[WebMainResourceLoader didReceiveData:lengthReceived:allAtOnce:]):
              (-[WebMainResourceLoader didFinishLoading]):
              * Loader/WebNetscapePlugInStreamLoader.m:
              (-[WebNetscapePlugInStreamLoader didFinishLoading]):
              (-[WebNetscapePlugInStreamLoader didFailWithError:]):
              (-[WebNetscapePlugInStreamLoader cancelWithError:]):
              * Loader/WebSubresourceLoader.m:
              (+[WebSubresourceLoader startLoadingResource:withRequest:customHeaders:referrer:forFrameLoader:]):
              (-[WebSubresourceLoader signalFinish]):
              (-[WebSubresourceLoader didFailWithError:]):
              (-[WebSubresourceLoader cancel]):
              * Plugins/WebNetscapePluginStream.m:
              (-[WebNetscapePluginStream start]):
              * WebView/WebDataSource.m:
              (-[WebDataSource _replaceSelectionWithArchive:selectReplacement:]):
              (-[WebDataSource _updateIconDatabaseWithURL:]):
              (-[WebDataSource _loadIcon]):
              (-[WebDataSource _setPrimaryLoadComplete:]):
              (-[WebDataSource _cancelledError]):
              (+[WebDataSource _repTypesAllowImageTypeOmission:]):
              (+[WebDataSource _representationClassForMIMEType:]):
              (-[WebDataSource _commitLoadWithData:]):
              (-[WebDataSource _receivedMainResourceError:complete:]):
              (-[WebDataSource _iconLoaderReceivedPageIcon:]):
              (-[WebDataSource _isDocumentHTML]):
              * WebView/WebDataSourceInternal.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@15962 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      59893088
  9. 21 Aug, 2006 1 commit
    • beidson's avatar
      Reviewed by Anders · 2601cff7
      beidson authored
              -Renamed an internal only method for clarity
              -Tweaked WebDataSource for notification purposes with the new expiring icons
              -Fixed a bug with the ICONDEBUG flag
      
              * Misc/WebIconDatabase.m:
              (-[WebIconDatabase init]):
              (-[WebIconDatabase iconForURL:withSize:cache:]): #ifdef bug fixed
              (-[WebIconDatabase _hasEntryForIconURL:]): Renamed for clarity
              * Misc/WebIconDatabasePrivate.h:
              * WebView/WebDataSource.m:
              (-[WebDataSource _updateIconDatabaseWithURL:]):
              (-[WebDataSource _notifyIconChanged:]):
              (-[WebDataSource _loadIcon]):
              (-[WebDataSource _iconLoaderReceivedPageIcon:]):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@15950 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2601cff7
  10. 20 Aug, 2006 1 commit
    • mjs's avatar
      Reviewed by Brady. · 33b1b030
      mjs authored
              
              - pull a bit of WebDataSource code into WebFrameLoader
      
              * Loader/WebFrameLoader.m:
              (-[WebFrameLoader _receivedError:]):
              (-[WebFrameLoader webFrame]):
              (-[WebFrameLoader _handleFallbackContent]):
              (+[WebFrameLoader _canShowMIMEType:]):
              (+[WebFrameLoader _representationExistsForURLScheme:]):
              (+[WebFrameLoader _generatedMIMETypeForURLScheme:]):
              * WebView/WebDataSource.m:
              * WebView/WebDataSourceInternal.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@15947 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      33b1b030
  11. 08 Aug, 2006 1 commit
    • beidson's avatar
      WebCore: · 2bfe8d3b
      beidson authored
              Reviewed by Anders and John
      
              Icons can now refresh when new data is sent from WebKit, both on disk and in memory
      
              * bridge/mac/WebCoreIconDatabaseBridge.h:
              * bridge/mac/WebCoreIconDatabaseBridge.mm:
              (WebCore::IconDatabase::loadIconFromURL):  Allows WebCore/Kit to kick off a load
              outside of any greater context
              (-[WebCoreIconDatabaseBridge isIconExpiredForIconURL:]):
              (-[WebCoreIconDatabaseBridge isIconExpiredForPageURL:]): Allows WebKit
              to get whether or not an icon has expired
      
              * loader/icon/IconDatabase.cpp:
              (WebCore::IconDatabase::recreateDatabase): Changed database schema slightly
              (WebCore::IconDatabase::createPrivateTables): Changed database schema slightly
              (WebCore::IconDatabase::iconForPageURL): 
              (WebCore::IconDatabase::isIconExpiredForIconURL): Get if an icon has expired
              (WebCore::IconDatabase::isIconExpiredForPageURL): Get if an icon has expired
              (WebCore::IconDatabase::setIconDataForIconURL): Force a refresh of the in memory
              image when new icon data is loaded
              (WebCore::IconDatabase::setIconURLForPageURL): added a check for null iconID
      
              * loader/icon/IconDatabase.h: added/changed some methods
              * loader/icon/SiteIcon.cpp:
              (SiteIcon::getImage): simplified/removed debugging code
              (SiteIcon::manuallySetImageData): allow the image data to be changed when new icon
              data is loaded
      
      WebKit:
      
              Reviewed by Anders and John
      
              * Misc/WebIconDatabase.m:
              (-[WebIconDatabase init]):
              (-[WebIconDatabase isIconExpiredForIconURL:]): Get if an icon expired
              (-[WebIconDatabase isIconExpiredForPageURL:]): Ditto
              (-[WebIconDatabase _setIconURL:forURL:]):
              (-[WebIconDatabase _sendNotificationForURL:]): Moved to WebKitPendingPublic for use outside of WebIconDatabase
              (-[WebIconDatabase loadIconFromURL:]): Allow a load outside the context of a page load
              * Misc/WebIconDatabasePrivate.h:
      
              * Misc/WebIconLoader.m:
              (-[WebIconLoader didFinishLoading]): fixed up the "flipping the switch" #defs a bit
              (-[WebIconLoader willSendRequest:redirectResponse:]): override to allow a load
              outside of the context of a page load
      
              * WebCoreSupport/WebIconDatabaseBridge.h: Added.
              * WebCoreSupport/WebIconDatabaseBridge.m: Added.
              (-[WebIconDatabaseBridge init]):
              (-[WebIconDatabaseBridge dealloc]):
              (-[WebIconDatabaseBridge loadIconFromURL:]):  Kick off a load on an icon outside
              of the context of any page load
              (-[WebIconDatabaseBridge _setIconData:forIconURL:]):  WebKit side of bridge method
              (-[WebIconDatabaseBridge _setHaveNoIconForIconURL:]):  WebKit side of bridge method
              (-[WebIconDatabaseBridge releaseCachedLoaderForIconURL:]): 
              (+[WebIconDatabaseBridge sharedBridgeInstance]): Moved this from WebCore to WebKit
              so both sides of the bridge get the WebKit version
              * WebKit.xcodeproj/project.pbxproj: Added some files
              * WebView/WebDataSource.m:
              (-[WebDataSource _loadIcon]): Added check for reload/expired icon to force
              a load even if we already have it
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@15815 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2bfe8d3b
  12. 03 Aug, 2006 1 commit
    • mjs's avatar
      Reviewed by John. · 142d1c65
      mjs authored
              
              - remove use of WebDataSource from WebLoader and subclasses, just have them talk to the
              WebFrameLoader instead. 
              
              For now this is done by forarding all the calls.
      
              * Misc/WebIconLoader.m:
              (-[WebIconLoader didFinishLoading]):
              * Plugins/WebNetscapePluginStream.m:
              (-[WebNetscapePluginStream initWithRequest:pluginPointer:notifyData:sendNotification:]):
              (-[WebNetscapePluginStream start]):
              (-[WebNetscapePlugInStreamLoader didFinishLoading]):
              (-[WebNetscapePlugInStreamLoader didFailWithError:]):
              (-[WebNetscapePlugInStreamLoader cancelWithError:]):
              * WebCoreSupport/WebFrameBridge.m:
              (-[WebFrameBridge startLoadingResource:withMethod:URL:customHeaders:]):
              (-[WebFrameBridge startLoadingResource:withMethod:URL:customHeaders:postData:]):
              * WebCoreSupport/WebSubresourceLoader.h:
              * WebCoreSupport/WebSubresourceLoader.m:
              (-[WebSubresourceLoader initWithLoader:frameLoader:]):
              (+[WebSubresourceLoader startLoadingResource:withRequest:customHeaders:referrer:forFrameLoader:]):
              (+[WebSubresourceLoader startLoadingResource:withMethod:URL:customHeaders:referrer:forFrameLoader:]):
              (+[WebSubresourceLoader startLoadingResource:withMethod:URL:customHeaders:postData:referrer:forFrameLoader:]):
              (-[WebSubresourceLoader receivedError:]):
              (-[WebSubresourceLoader signalFinish]):
              (-[WebSubresourceLoader didFailWithError:]):
              (-[WebSubresourceLoader cancel]):
              * WebKit.xcodeproj/project.pbxproj:
              * WebView/WebDataSource.m:
              (-[WebDataSource _updateLoading]):
              (-[WebDataSource textEncodingName]):
              (-[WebDataSource _mainReceivedBytesSoFar:complete:]):
              * WebView/WebFrameLoader.h:
              * WebView/WebFrameLoader.m:
              (-[WebFrameLoader loadIconWithRequest:]):
              (-[WebFrameLoader startLoadingMainResourceWithRequest:identifier:]):
              (-[WebFrameLoader clearIconLoader]):
              (-[WebFrameLoader commitProvisionalLoad]):
              (-[WebFrameLoader activeDataSource]):
              (-[WebFrameLoader _archivedSubresourceForURL:]):
              (-[WebFrameLoader _defersCallbacks]):
              (-[WebFrameLoader _identifierForInitialRequest:]):
              (-[WebFrameLoader _willSendRequest:forResource:redirectResponse:]):
              (-[WebFrameLoader _didReceiveAuthenticationChallenge:forResource:]):
              (-[WebFrameLoader _didCancelAuthenticationChallenge:forResource:]):
              (-[WebFrameLoader _didReceiveResponse:forResource:]):
              (-[WebFrameLoader _didReceiveData:contentLength:forResource:]):
              (-[WebFrameLoader _didFinishLoadingForResource:]):
              (-[WebFrameLoader _didFailLoadingWithError:forResource:]):
              (-[WebFrameLoader _privateBrowsingEnabled]):
              (-[WebFrameLoader _addPlugInStreamLoader:]):
              (-[WebFrameLoader _removePlugInStreamLoader:]):
              (-[WebFrameLoader _finishedLoadingResource]):
              (-[WebFrameLoader _receivedError:]):
              (-[WebFrameLoader _addSubresourceLoader:]):
              (-[WebFrameLoader _removeSubresourceLoader:]):
              (-[WebFrameLoader _originalRequest]):
              (-[WebFrameLoader webFrame]):
              (-[WebFrameLoader _receivedMainResourceError:complete:]):
              (-[WebFrameLoader initialRequest]):
              (-[WebFrameLoader _receivedData:]):
              (-[WebFrameLoader _setRequest:]):
              (-[WebFrameLoader _downloadWithLoadingConnection:request:response:proxy:]):
              (-[WebFrameLoader _handleFallbackContent]):
              (-[WebFrameLoader _isStopping]):
              (-[WebFrameLoader _decidePolicyForMIMEType:decisionListener:]):
              (-[WebFrameLoader _setupForReplaceByMIMEType:]):
              (-[WebFrameLoader _setResponse:]):
              (-[WebFrameLoader _mainReceivedError:complete:]):
              (-[WebFrameLoader _finishedLoading]):
              (-[WebFrameLoader _mainReceivedBytesSoFar:complete:]):
              (-[WebFrameLoader _iconLoaderReceivedPageIcon:]):
              (-[WebFrameLoader _URL]):
              * WebView/WebLoader.h:
              * WebView/WebLoader.m:
              (-[NSURLProtocol releaseResources]):
              (-[NSURLProtocol loadWithRequest:]):
              (-[NSURLProtocol setFrameLoader:]):
              (-[NSURLProtocol frameLoader]):
              (-[NSURLProtocol willSendRequest:redirectResponse:]):
              (-[NSURLProtocol didReceiveAuthenticationChallenge:]):
              (-[NSURLProtocol didCancelAuthenticationChallenge:]):
              (-[NSURLProtocol didReceiveResponse:]):
              (-[NSURLProtocol didReceiveData:lengthReceived:]):
              (-[NSURLProtocol signalFinish]):
              (-[NSURLProtocol didFailWithError:]):
              (-[NSURLProtocol willCacheResponse:]):
              (-[NSURLProtocol cancelWithError:]):
              * WebView/WebMainResourceLoader.h:
              * WebView/WebMainResourceLoader.m:
              (-[WebMainResourceLoader initWithFrameLoader:]):
              (-[WebMainResourceLoader receivedError:]):
              (-[WebMainResourceLoader cancelWithError:]):
              (-[WebMainResourceLoader _isPostOrRedirectAfterPost:redirectResponse:]):
              (-[WebMainResourceLoader addData:]):
              (-[WebMainResourceLoader willSendRequest:redirectResponse:]):
              (-[WebMainResourceLoader continueAfterContentPolicy:response:]):
              (-[WebMainResourceLoader continueAfterContentPolicy:]):
              (-[WebMainResourceLoader checkContentPolicyForResponse:]):
              (-[WebMainResourceLoader didReceiveResponse:]):
              (-[WebMainResourceLoader didReceiveData:lengthReceived:]):
              (-[WebMainResourceLoader didFinishLoading]):
              (-[WebMainResourceLoader didFailWithError:]):
              (-[WebMainResourceLoader loadWithRequestNow:]):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@15784 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      142d1c65
  13. 02 Aug, 2006 2 commits
    • mjs's avatar
      Reviewed by John. · 7064bc44
      mjs authored
              
              - fix assertion failure on layout tests by stopping plugins from loading at a clearly defined time
              - add more assertions for safety
      
              * WebView/WebDataSource.m:
              (-[WebDataSourcePrivate dealloc]): Removed obsolete comment.
              (-[WebDataSource _updateLoading]): Add assertion ensuring this method is only called
              at a time when this data source is the one that might be loading for a frame.
              (-[WebDataSource _stopLoading]): Stop loading plugins as a FIXME suggests we should.
              * WebView/WebFrameLoader.m:
              (-[WebFrameLoader isLoadingPlugIns]): New helper method.
              (-[WebFrameLoader isLoading]): Consider plugin loads too - otherwise we won't stop them
              at stopLoading time.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@15756 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7064bc44
    • mjs's avatar
      Reviewed by Adele. · 176a364b
      mjs authored
              
              - Change things around so WebFrameLoader tracks the main and provisional data source,
              as well as the frame load state, pulling much code out of WebFrame along the way.
              
              The most significant aspects of this change are:
              
              - management of WebDataSources and WebFrameState was moved into WebFrameLoader
              - there is now just one WebFrameLoader shared between the primary and provisional data source
      
              * WebKit.xcodeproj/project.pbxproj:
              * WebView/WebDataSource.m:
              (-[WebDataSourcePrivate dealloc]):
              (-[WebDataSource _updateLoading]):
              (-[WebDataSource _loadIcon]):
              (-[WebDataSource _setPrimaryLoadComplete:]):
              (-[WebDataSource _stopLoading]):
              (-[WebDataSource _startLoading]):
              (-[WebDataSource _addSubresourceLoader:]):
              (-[WebDataSource _removeSubresourceLoader:]):
              (-[WebDataSource _addPlugInStreamLoader:]):
              (-[WebDataSource _removePlugInStreamLoader:]):
              (-[WebDataSource _defersCallbacksChanged]):
              (-[WebDataSource _stopLoadingWithError:]):
              (-[WebDataSource _revertToProvisionalState]):
              (-[WebDataSource _setupForReplaceByMIMEType:]):
              (-[WebDataSource initWithRequest:]):
              (-[WebDataSource data]):
              (-[WebDataSource isLoading]):
              * WebView/WebFrame.m:
              (-[WebFramePrivate init]):
              (-[WebFramePrivate dealloc]):
              (-[WebFrame _closeOldDataSources]):
              (-[WebFrame _detachFromParent]):
              (-[WebFrame _makeDocumentView]):
              (-[WebFrame _receivedMainResourceError:]):
              (-[WebFrame _transitionToCommitted:]):
              (+[WebFrame _timeOfLastCompletedLoad]):
              (-[WebFrame _checkLoadCompleteForThisFrame]):
              (-[WebFrame _loadItem:withLoadType:]):
              (-[WebFrame _continueAfterWillSubmitForm:]):
              (-[WebFrame _continueLoadRequestAfterNavigationPolicy:formState:]):
              (-[WebFrame _initWithWebFrameView:webView:bridge:]):
              (-[WebFrame _frameLoader]):
              (-[WebFrame _provisionalLoadStarted]):
              (-[WebFrame _prepareForDataSourceReplacement]):
              (-[WebFrame _frameLoadCompleted]):
              (-[WebFrame provisionalDataSource]):
              (-[WebFrame dataSource]):
              (-[WebFrame stopLoading]):
              * WebView/WebFrameInternal.h:
              * WebView/WebFrameLoader.h:
              * WebView/WebFrameLoader.m:
              (-[WebFrameLoader initWithWebFrame:]):
              (-[WebFrameLoader dealloc]):
              (-[WebFrameLoader dataSource]):
              (-[WebFrameLoader _setDataSource:]):
              (-[WebFrameLoader clearDataSource]):
              (-[WebFrameLoader provisionalDataSource]):
              (-[WebFrameLoader _setProvisionalDataSource:]):
              (-[WebFrameLoader _clearProvisionalDataSource]):
              (-[WebFrameLoader state]):
              (+[WebFrameLoader timeOfLastCompletedLoad]):
              (-[WebFrameLoader _setState:]):
              (-[WebFrameLoader clearProvisionalLoad]):
              (-[WebFrameLoader markLoadComplete]):
              (-[WebFrameLoader commitProvisionalLoad]):
              (-[WebFrameLoader stopLoading]):
              (-[WebFrameLoader startLoading]):
              (-[WebFrameLoader startProvisionalLoad:]):
              (-[WebFrameLoader setupForReplace]):
              * WebView/WebFramePrivate.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@15751 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      176a364b
  14. 10 Jul, 2006 1 commit
  15. 25 Jun, 2006 1 commit
    • thatcher's avatar
      JavaScriptCore: · 6458fe59
      thatcher authored
              Reviewed by Darin.
      
              Bug 9574: Drosera should show inline scripts within the original HTML
              http://bugzilla.opendarwin.org/show_bug.cgi?id=9574
      
              Pass the starting line number and error message to the debugger.
      
              * kjs/debugger.cpp:
              (Debugger::sourceParsed):
              * kjs/debugger.h:
              * kjs/function.cpp:
              (KJS::GlobalFuncImp::callAsFunction):
              * kjs/function_object.cpp:
              (FunctionObjectImp::construct):
              * kjs/interpreter.cpp:
              (KJS::Interpreter::evaluate):
      
      WebCore:
      
              Reviewed by Darin.
      
              Bug 9574: Drosera should show inline scripts within the original HTML
              http://bugzilla.opendarwin.org/show_bug.cgi?id=9574
      
              * Pass the starting line number and error message to the debugger.
              * Call parsedSource even if there was a script parse error so the
                debugger can show the parse error.
              * Pass NSURL objects to the ObjC delegate for the script URLs.
      
              * bridge/mac/WebCoreScriptDebugger.h:
              * bridge/mac/WebCoreScriptDebugger.mm:
              (toNSURL):
              (WebCoreScriptDebuggerImp::sourceParsed):
      
      WebKit:
      
              Reviewed by Darin.
      
              Bug 9574: Drosera should show inline scripts within the original HTML
              http://bugzilla.opendarwin.org/show_bug.cgi?id=9574
      
              * Adds a new version of the didParseSource delegate callback with base line number.
              * Adds a new delegate callback for when a script fails to parse.
              * These new callbacks use NSURLs for the url parameter.
              * Adds a new script listener callback to notify when the main resource loads.
              * Adds a WebScriptErrorDomian and other keys for use with NSError.
      
              * DefaultDelegates/WebDefaultScriptDebugDelegate.m:
              (-[WebDefaultScriptDebugDelegate webView:didParseSource:baseLineNumber:fromURL:sourceId:forWebFrame:]):
              (-[WebDefaultScriptDebugDelegate webView:failedToParseSource:baseLineNumber:fromURL:withError:forWebFrame:]):
              * DefaultDelegates/WebScriptDebugServer.h:
              * DefaultDelegates/WebScriptDebugServer.m:
              (-[WebScriptDebugServer webView:didLoadMainResourceForDataSource:]):
              (-[WebScriptDebugServer webView:didParseSource:baseLineNumber:fromURL:sourceId:forWebFrame:]):
              (-[WebScriptDebugServer webView:failedToParseSource:baseLineNumber:fromURL:withError:forWebFrame:]):
              * DefaultDelegates/WebScriptDebugServerPrivate.h:
              * WebKit.exp:
              * WebView/WebDataSource.m:
              (-[WebDataSource _setPrimaryLoadComplete:]):
              * WebView/WebScriptDebugDelegate.h:
              * WebView/WebScriptDebugDelegate.m:
              (-[WebScriptCallFrame parsedSource:fromURL:sourceId:startLine:errorLine:errorMessage:]):
      
      WebKitTools:
      
              Reviewed by Darin.
      
              Bug 9574: Drosera should show inline scripts within the original HTML
              http://bugzilla.opendarwin.org/show_bug.cgi?id=9574
      
              Refactor the JavaScript code to have a distinction between files
              and scripts. Show the script in the context of the HTML file if
              it's URL is the same as the frame's main resource. At the time of
              the disParseScript callback the main resource might not be completely
              loaded, but Drosera needs to show whatever we have at the time. Once
              the main resource is finished, update the file source and reload the file.
      
              * Drosera/DebuggerDocument.m:
              (-[DebuggerDocument pause]):
              (-[DebuggerDocument webView:didLoadMainResourceForDataSource:]):
              (-[DebuggerDocument webView:didParseSource:baseLineNumber:fromURL:sourceId:forWebFrame:]):
              (-[DebuggerDocument webView:failedToParseSource:baseLineNumber:fromURL:withError:forWebFrame:]):
              * Drosera/debugger.css:
              * Drosera/debugger.js:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@15026 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      6458fe59
  16. 23 Jun, 2006 1 commit
  17. 22 Jun, 2006 1 commit
    • mjs's avatar
      Reviewed by Adele. · 90f341e1
      mjs authored
              
              - start moving loading logic to new WebFrameLoader class; move management of WebLoaders there
      
              * Misc/WebIconLoader.h:
              * Misc/WebIconLoader.m:
              (-[WebIconLoader didFinishLoading]):
              * WebKit.xcodeproj/project.pbxproj:
              * WebView/WebDataSource.m:
              (-[WebDataSourcePrivate dealloc]):
              (-[WebDataSource _updateLoading]):
              (-[WebDataSource _loadIcon]):
              (-[WebDataSource _setPrimaryLoadComplete:]):
              (-[WebDataSource _stopLoading]):
              (-[WebDataSource _startLoading]):
              (-[WebDataSource _addSubresourceLoader:]):
              (-[WebDataSource _removeSubresourceLoader:]):
              (-[WebDataSource _addPlugInStreamLoader:]):
              (-[WebDataSource _removePlugInStreamLoader:]):
              (-[WebDataSource _iconLoaderReceivedPageIcon:]):
              (-[WebDataSource _defersCallbacksChanged]):
              (-[WebDataSource _stopLoadingWithError:]):
              (-[WebDataSource _setupForReplaceByMIMEType:]):
              (-[WebDataSource initWithRequest:]):
              (-[WebDataSource dealloc]):
              (-[WebDataSource finalize]):
              (-[WebDataSource data]):
              (-[WebDataSource isLoading]):
              * WebView/WebFrameLoader.h: Added.
              * WebView/WebFrameLoader.m: Added.
              (-[WebFrameLoader initWithDataSource:]):
              (-[WebFrameLoader dealloc]):
              (-[WebFrameLoader hasIconLoader]):
              (-[WebFrameLoader loadIconWithRequest:]):
              (-[WebFrameLoader stopLoadingIcon]):
              (-[WebFrameLoader addPlugInStreamLoader:]):
              (-[WebFrameLoader removePlugInStreamLoader:]):
              (-[WebFrameLoader setDefersCallbacks:]):
              (-[WebFrameLoader stopLoadingPlugIns]):
              (-[WebFrameLoader isLoadingMainResource]):
              (-[WebFrameLoader isLoadingSubresources]):
              (-[WebFrameLoader isLoading]):
              (-[WebFrameLoader stopLoadingSubresources]):
              (-[WebFrameLoader addSubresourceLoader:]):
              (-[WebFrameLoader removeSubresourceLoader:]):
              (-[WebFrameLoader mainResourceData]):
              (-[WebFrameLoader releaseMainResourceLoader]):
              (-[WebFrameLoader cancelMainResourceLoad]):
              (-[WebFrameLoader startLoadingMainResourceWithRequest:identifier:]):
              (-[WebFrameLoader stopLoadingWithError:]):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14976 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      90f341e1
  18. 13 Jun, 2006 1 commit
    • tomernic's avatar
      Reviewed by Anders. · eb8dc57d
      tomernic authored
              Fixed a recently-introduced assertion failure when handling 404 errors.
      
              * WebView/WebDataSource.m:
              (-[WebDataSource _handleFallbackContent]):
              Use the -[WebFrame _bridge] instead of -[WebDataSource _bridge].  The former is not valid until the data
              source has been committed, as is the case when the resource fails to load.  The latter is safe to call at
              any time.  This broke last night with Maciej's change to WebFrameResourceLoader.  The old code used to call
              -[WebFrame _bridge].
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14843 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      eb8dc57d
  19. 12 Jun, 2006 2 commits
    • mjs's avatar
      - fix for cocoa exception (whoops) · fe6abf7e
      mjs authored
              * WebView/WebView.m:
              (+[WebView _generatedMIMETypeForURLScheme:]): put this back
              * WebView/WebDataSource.m:
              (+[WebDataSource _generatedMIMETypeForURLScheme:]): call WebView
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14833 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      fe6abf7e
    • mjs's avatar
      Reviewed by Darin. · 1e9e1a4a
      mjs authored
              
              - remove use of WebView and related from WebMainResourceLoader
      
              * WebKit.xcodeproj/project.pbxproj:
              * WebView/WebDataSource.m:
              (+[WebDataSource _generatedMIMETypeForURLScheme:]):
              (+[WebDataSource _representationExistsForURLScheme:]):
              (+[WebDataSource _canShowMIMEType:]):
              (-[WebDataSource _handleFallbackContent]):
              (-[WebDataSource _decidePolicyForMIMEType:decisionListener:]):
              * WebView/WebDataSourceInternal.h:
              * WebView/WebFrame.m:
              (-[WebFrame _isMainFrame]):
              * WebView/WebFrameInternal.h:
              * WebView/WebMainResourceLoader.m:
              (-[WebMainResourceLoader willSendRequest:redirectResponse:]):
              (-[WebMainResourceLoader continueAfterContentPolicy:response:]):
              (-[WebMainResourceLoader checkContentPolicyForResponse:]):
              (-[WebMainResourceLoader loadWithRequestNow:]):
              * WebView/WebView.m:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14832 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      1e9e1a4a
  20. 01 Jun, 2006 1 commit
    • mjs's avatar
      LayoutTests: · 8e2da038
      mjs authored
              Reviewed by Anders.
              
              - fixed "REGRESSION: Can't order from Pizza Hut (ToT, 05/24/06)"
              http://bugzilla.opendarwin.org/show_bug.cgi?id=9103
      
              * http/tests/misc/redirect-expected.txt: Added.
              * http/tests/misc/redirect.php: Added.
              * http/tests/misc/resources/redirect-result.php: Added.
      
      WebKit:
      
              Reviewed by Anders.
              
              - fixed "REGRESSION: Can't order from Pizza Hut (ToT, 05/24/06)"
              http://bugzilla.opendarwin.org/show_bug.cgi?id=9103
      
              * WebView/WebDataSource.m:
              (-[WebDataSource _willSendRequest:forResource:redirectResponse:]): Set up the
              User-Agent header.
              * WebView/WebDataSourceInternal.h:
              * WebView/WebLoader.m:
              (-[NSURLProtocol willSendRequest:redirectResponse:]): Pass a mutable URL request
              so the above can work.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14667 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8e2da038
  21. 25 May, 2006 1 commit
    • thatcher's avatar
      Reviewed by Tim O. · 25fd97ba
      thatcher authored
              <rdar://problem/4559808> WebKit fails to compile for ppc64
              <rdar://problem/4522085> 64-bit: WebKit uses FSSpec which is not available in 64-bit
              Gets WebKit building under 64-bit. Rename WebNSInt and WebNSUInt to WebNSInteger and WebNSUInteger.
              Start using WebNSInteger where we need to match AppKit API usage of NSInteger.
      
              HIWebView and a couple of helper functions are disabled until they can be moved off of QuickDraw.
              <rdar://problem/4561772> HIWebView needs to be reworked to not use QuickDraw, needed for 64-bit
      
              * Carbon/CarbonUtils.m: disabled this file in 64-bit <rdar://problem/4561772>
              * Carbon/CarbonWindowAdapter.m:
              (-[CarbonWindowAdapter initWithCarbonWindowRef:takingOwnership:disableOrdering:carbon:]):
              * Carbon/CarbonWindowFrame.m:
              (+[CarbonWindowFrame frameRectForContentRect:styleMask:]):
              (+[CarbonWindowFrame contentRectForFrameRect:styleMask:]):
              (+[CarbonWindowFrame minFrameSizeForMinContentSize:styleMask:]):
              (-[CarbonWindowFrame frameRectForContentRect:styleMask:]):
              (-[CarbonWindowFrame contentRectForFrameRect:styleMask:]):
              (-[CarbonWindowFrame minFrameSizeForMinContentSize:styleMask:]):
              * Carbon/HIViewAdapter.m: disabled this file in 64-bit <rdar://problem/4561772>
              * Carbon/HIWebView.m: disabled this file in 64-bit <rdar://problem/4561772>
              (HIWebViewEventHandler):
              * DefaultDelegates/WebDefaultResourceLoadDelegate.m:
              (-[WebDefaultResourceLoadDelegate webView:resource:didReceiveContentLength:fromDataSource:]):
              * History/WebBackForwardList.m:
              (-[WebBackForwardList removeItem:]):
              (-[WebBackForwardList goToItem:]):
              * Misc/WebDownload.m:
              (-[WebDownloadInternal download:didReceiveDataOfLength:]):
              * Misc/WebFileDatabase.m:
              (UniqueFilePathForKey):
              * Misc/WebIconDatabase.m:
              (-[NSMutableDictionary retainIconForURL:]):
              (-[NSMutableDictionary releaseIconForURL:]):
              (-[WebIconDatabase _totalRetainCountForIconURLString:]):
              (-[WebIconDatabase _retainIconForIconURLString:]):
              (-[WebIconDatabase _releaseIconForIconURLString:]):
              * Misc/WebSearchableTextView.m:
              (-[NSString selectionRect]):
              * Misc/WebTypesInternal.h: Added.
              * Plugins/WebBaseNetscapePluginStream.m:
              (-[WebBaseNetscapePluginStream _destroyStream]):
              (CarbonPathFromPOSIXPath):
              * Plugins/WebBaseNetscapePluginView.m:
              (-[WebBaseNetscapePluginView sendActivateEvent:]):
              (-[WebBaseNetscapePluginView sendUpdateEvent]):
              (TSMEventHandler):
              (-[WebBaseNetscapePluginView _postURL:target:len:buf:file:notifyData:sendNotification:allowHeaders:]):
              (-[WebBaseNetscapePluginView _printedPluginBitmap]):
              (-[NSData _web_locationAfterFirstBlankLine]):
              * Plugins/WebBasePluginPackage.m:
              (-[WebBasePluginPackage hash]):
              * Plugins/WebNetscapePluginPackage.m:
              (-[WebNetscapePluginPackage load]):
              (functionPointerForTVector):
              * WebInspector/WebInspector.m:
              (-[WebInspector _updateSystemColors]):
              * WebKit.xcodeproj/project.pbxproj:
              * WebView/WebDataSource.m:
              (-[WebDataSource _didReceiveData:contentLength:forResource:]):
              * WebView/WebFrame.m:
              (-[WebFrame _sendRemainingDelegateMessagesWithIdentifier:response:length:error:]):
              * WebView/WebHTMLView.m:
              (-[NSArray drawRect:]):
              (-[WebHTMLView characterIndexForPoint:]):
              (-[WebHTMLView conversationIdentifier]):
              * WebView/WebResourceLoadDelegate.h:
              * WebView/WebUIDelegate.h:
              * WebView/WebView.h:
              * WebView/WebView.m:
              (-[WebView _mouseDidMoveOverElement:modifierFlags:]):
              (-[WebView spellCheckerDocumentTag]):
              * WebView/WebViewInternal.h:
              * WebView/WebViewPrivate.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14586 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      25fd97ba
  22. 23 May, 2006 2 commits
    • mjs's avatar
      Reviewed by Maciej. · 48ffc74a
      mjs authored
              
              - more loader refactoring to simplify things and remove knowledge of WebView from WebSubresourceLoader
      
              * WebCoreSupport/WebSubresourceLoader.m:
              (+[WebSubresourceLoader startLoadingResource:withRequest:customHeaders:referrer:forDataSource:]):
              (-[WebSubresourceLoader didReceiveResponse:]):
              * WebView/WebDataSource.m:
              (-[WebDataSource _loadIcon]):
              (-[WebDataSource _startLoading]):
              * WebView/WebFrame.m:
              (-[WebFrame _loadRequest:archive:]):
              (-[WebFrame _loadItem:withLoadType:]):
              (-[WebFrame _loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
              (-[WebFrame _postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
              (-[WebFrame _addExtraFieldsToRequest:mainResource:alwaysFromRequest:]):
              * WebView/WebFrameInternal.h:
              * WebView/WebFramePrivate.h:
              * WebView/WebLoader.h:
              * WebView/WebLoader.m:
              * WebView/WebMainResourceLoader.m:
              (-[WebMainResourceLoader initWithDataSource:]):
              (-[WebMainResourceLoader didReceiveResponse:]):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14553 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      48ffc74a
    • mjs's avatar
      Reviewed by Eric. · 484a8755
      mjs authored
              
              - remove knowledge of WebView from WebLoader in preparation for moving the code down
      
              * WebView/WebDataSource.m:
              (-[WebDataSource _defersCallbacks]):
              (-[WebDataSource _identifierForInitialRequest:]):
              (-[WebDataSource _willSendRequest:forResource:redirectResponse:]):
              (-[WebDataSource _didReceiveAuthenticationChallenge:forResource:]):
              (-[WebDataSource _didCancelAuthenticationChallenge:forResource:]):
              (-[WebDataSource _didReceiveResponse:forResource:]):
              (-[WebDataSource _didReceiveData:contentLength:forResource:]):
              (-[WebDataSource _didFinishLoadingForResource:]):
              (-[WebDataSource _didFailLoadingWithError:forResource:]):
              (-[WebDataSource _downloadWithLoadingConnection:request:response:proxy:]):
              (-[WebDataSource _privateBrowsingEnabled]):
              * WebView/WebDataSourceInternal.h:
              * WebView/WebLoader.h:
              * WebView/WebLoader.m:
              (-[WebLoader releaseResources]):
              (-[WebLoader setDataSource:]):
              (-[WebLoader willSendRequest:redirectResponse:]):
              (-[WebLoader didReceiveAuthenticationChallenge:]):
              (-[WebLoader didCancelAuthenticationChallenge:]):
              (-[WebLoader didReceiveResponse:]):
              (-[WebLoader didReceiveData:lengthReceived:]):
              (-[WebLoader signalFinish]):
              (-[WebLoader didFinishLoading]):
              (-[WebLoader didFailWithError:]):
              (-[WebLoader willCacheResponse:]):
              (-[WebLoader cancelWithError:]):
              * WebView/WebMainResourceLoader.m:
              (-[WebMainResourceLoader continueAfterContentPolicy:response:]):
              * WebView/WebView.m:
              (-[WebView _incrementProgressForIdentifier:response:]):
              (-[WebView _incrementProgressForIdentifier:data:]):
              (-[WebView _completeProgressForIdentifier:]):
              * WebView/WebViewInternal.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14533 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      484a8755
  23. 20 May, 2006 1 commit
    • mjs's avatar
      Reviewed by Beth. · 84327503
      mjs authored
              
              - fix assertion failure on layout tests
      
              * WebView/WebDataSource.m:
              (-[WebDataSource _mainReceivedError:complete:]): Don't do anything
              if this data source is no longer connected to a frame. Used to be
              this couldn't happen because the WebView would have been nil, but
              we no longer go through the WebView.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14505 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      84327503
  24. 18 May, 2006 1 commit
    • mjs's avatar
      Reviewed by Eric. · 1544355e
      mjs authored
              
              - remove loading-related code from WebView
              http://bugzilla.opendarwin.org/show_bug.cgi?id=8981
      
              * Plugins/WebNetscapePluginStream.m:
              (-[WebNetscapePlugInStreamLoader didFinishLoading]):
              (-[WebNetscapePlugInStreamLoader didFailWithError:]):
              * WebCoreSupport/WebSubresourceLoader.m:
              (-[WebSubresourceLoader receivedError:]):
              (-[WebSubresourceLoader signalFinish]):
              * WebView/WebDataSource.m:
              (-[WebDataSource _stopLoading]):
              (-[WebDataSource _receivedMainResourceError:complete:]):
              (-[WebDataSource _finishedLoadingResource]):
              (-[WebDataSource _mainReceivedBytesSoFar:complete:]):
              (-[WebDataSource _receivedError:]):
              (-[WebDataSource _mainReceivedError:complete:]):
              * WebView/WebDataSourceInternal.h:
              * WebView/WebFrame.m:
              (-[WebFrame _sendRemainingDelegateMessagesWithIdentifier:response:length:error:]):
              * WebView/WebMainResourceLoader.m:
              (-[WebMainResourceLoader didReceiveData:lengthReceived:]):
              (-[WebMainResourceLoader didFinishLoading]):
              * WebView/WebView.m:
              * WebView/WebViewInternal.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14481 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      1544355e
  25. 16 May, 2006 2 commits
    • darin's avatar
      WebCore: · d6226137
      darin authored
              Reviewed by Anders.
      
              - http://bugzilla.opendarwin.org/show_bug.cgi?id=8940
                remove extra copy of image code
      
              * WebCore.xcodeproj/project.pbxproj: Removed WebCoreImageRenderer.h.
              * platform/mac/WebCoreImageRenderer.h: Removed.
      
              * bridge/mac/WebCoreFrameBridge.h: Added supportedImageResourceMIMETypes.
              Like supportedImageMIMETypes, but includes PDF and PostScript.
              * bridge/mac/WebCoreFrameBridge.mm:
              (+[WebCoreFrameBridge supportedImageResourceMIMETypes]): Added.
              Has code that came from -[WebImageRendererFactory supportedMIMETypes].
              (+[WebCoreFrameBridge supportedImageMIMETypes]):
      
              * platform/mac/ImageMac.mm:
              (WebCore::Image::supportsType): Instead of calling the old
              -[WebCoreImageRendererFactory supportedMIMETypes], call the new
              +[WebCoreFrameBridge supportedImageResourceMIMETypes].
              (WebCore::Image::drawTiled): Use wkSetPatternPhaseInUserSpace instead of
              the WebCoreImageRendererFactory.
      
              * platform/mac/ClipboardMac.mm: Removed an unneeded include of
              WebCoreImageRenderer.h.
      
              * platform/mac/WebCoreImageRendererFactory.h: Removed everything except
              for the one remaining method, imageDataForName:, which gets resources
              from the WebKit localized resources. We should figure out how to remove
              that one too later.
              * platform/mac/WebCoreImageRendererFactory.m: Ditto.
      
              * platform/mac/WebCoreSystemInterface.h: Added some new calls.
              * platform/mac/WebCoreSystemInterface.mm: Ditto.
              * WebCore.exp: Ditto.
      
              * platform/cairo/ImageCairo.cpp: Moved a stub to the stubs file. If it's
              here it has to have a FIXME comment and also it contains a big commented-out
              pile of code. Better to have it in the stubs file with all the other stubs.
              * platform/win/TemporaryLinkStubs.cpp: (Image::drawTiled): Put stub here
              instead of having it in ImageCairo.cpp.
      
      WebKit:
      
              Reviewed by Anders.
      
              - http://bugzilla.opendarwin.org/show_bug.cgi?id=8940
                remove extra copy of image code
      
              * English.lproj/StringsNotToBeLocalized.txt: Updated for many recent changes.
      
              * WebKit.xcodeproj/project.pbxproj: Removed files.
              * WebCoreSupport/WebImageData.h: Removed.
              * WebCoreSupport/WebImageData.m: Removed.
              * WebCoreSupport/WebImageDecodeItem.h: Removed.
              * WebCoreSupport/WebImageDecodeItem.m: Removed.
              * WebCoreSupport/WebImageDecoder.h: Removed.
              * WebCoreSupport/WebImageDecoder.m: Removed.
              * WebCoreSupport/WebImageRenderer.h: Removed.
              * WebCoreSupport/WebImageRenderer.m: Removed.
      
              * WebCoreSupport/WebImageRendererFactory.h:
              * WebCoreSupport/WebImageRendererFactory.m: Removed everything except for
              shouldUseThreadedDecoding, setShouldUseThreadedDecoding, and imageDataForName:.
      
              * Misc/WebNSPasteboardExtras.h: Removed WebImageRenderer parameter from
              _web_declareAndWriteDragImage and renamed _web_declareAndWriteDragImageElement.
              * Misc/WebNSPasteboardExtras.m:
              (-[NSPasteboard _web_writeImage:element:URL:title:archive:types:]): Changed to
              call +[WebFrameBridge supportedImageResourceMIMETypes] instead of
              -[WebImageRendererFactory supportedMIMETypes].
              (-[NSPasteboard _web_declareAndWriteDragImageElement:URL:title:archive:source:]):
              Removed WebImageRenderer parameter, and updated code since it was always nil.
      
              * Misc/WebNSViewExtras.h: Removed WebImageRenderer parameter from
              _web_dragImage and renamed _web_dragImageElement.
              * Misc/WebNSViewExtras.m:
              (-[NSView _web_dragImageElement:rect:event:pasteboard:source:offset:]):
              Removed WebImageRenderer parameter, and updated code since it was always nil.
      
              * WebCoreSupport/WebSystemInterface.m: (InitWebCoreSystemInterface): Added some new
              functions now used by WebCore.
      
              * WebView/WebDataSource.m: (-[WebDataSource _documentFragmentWithArchive:]):
              Call +[WebFrameBridge supportedImageResourceMIMETypes] instead of
              -[WebImageRendererFactory supportedMIMETypes].
      
              * WebView/WebFrameView.m: Removed include of WebImageRenderer.h.
      
              * WebView/WebHTMLRepresentation.m: (+[WebHTMLRepresentation supportedImageMIMETypes]):
              Removed call to +[WebImageRendererFactory createSharedFactory].
      
              * WebView/WebHTMLView.m:
              (-[WebHTMLView _imageExistsAtPaths:]): Call +[WebFrameBridge supportedImageResourceMIMETypes]
              instead of -[WebImageRendererFactory supportedMIMETypes].
              (-[WebHTMLView _documentFragmentWithPaths:]): Ditto.
              (-[WebHTMLView _startDraggingImage:at:operation:event:sourceIsDHTML:DHTMLWroteData:]): Update
              to no longer pass nil for an image to _web_declareAndWriteDragImageElement and to
              _web_dragImageElement.
              (-[WebHTMLView dealloc]): Remove call to now-unneeded _reset.
              (-[WebHTMLView finalize]): Ditto.
              (-[WebHTMLView viewDidMoveToWindow]): Remove logic for calling _reset, including the inWindow
              boolean field.
      
              * WebView/WebHTMLViewInternal.h: Removed inWindow boolean.
              * WebView/WebHTMLViewPrivate.h: Removed _reset method.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14420 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d6226137
    • andersca's avatar
      WebCore: · e3516cb3
      andersca authored
      2006-05-16  Anders Carlsson  <acarlsson@apple.com>
      
              Reviewed by Maciej.
      
              http://bugzilla.opendarwin.org/show_bug.cgi?id=8921
              Use WebCore to render full-frame images.
      
              * WebCore.xcodeproj/project.pbxproj:
              Add ImageDocument.
              
              * bridge/mac/WebCoreFrameBridge.h:
              Add mainResourceURLResponse and imageTitleForFilename.
              
              * bridge/mac/WebCoreFrameBridge.mm:
              (+[WebCoreFrameBridge supportedNonImageMIMETypes]):
              This used to be supportedMIMETypes but WebKit requires that we handle the
              image MIME types separately.
              
              (+[WebCoreFrameBridge supportedImageMIMETypes]):
              Add image types from WebCoreImageRendererFactory.
              
              (-[WebCoreFrameBridge canProvideDocumentSource]):
              Return no for image types.
              
              * dom/xml_tokenizer.h:
              (WebCore::Tokenizer::wantsRawData):
              (WebCore::Tokenizer::writeRawData):
              New virtual functions which tokenizers can override if they want to get
              raw data (which isn't fed through the decoder)
              
              * html/HTMLImageElement.h:
              (WebCore::HTMLImageElement::setLoadManually):
              New function which calls HTMLImageLoader::setLoadManually
              
              * html/HTMLImageLoader.cpp:
              (WebCore::HTMLImageLoader::HTMLImageLoader):
              (WebCore::HTMLImageLoader::updateFromElement):
              Don't request the image from the loader if the load is set to be manual.
              
              * html/HTMLImageLoader.h:
              (WebCore::HTMLImageLoader::setLoadManually):
              New function which decides if the image data should be fed manually or loaded
              by the loader.
              
              * loader/DocLoader.h:
              Add HTMLImageLoader as a friend.
              
              * loader/ImageDocument.cpp: Added.
              (WebCore::ImageTokenizer::ImageTokenizer):
              (WebCore::ImageTokenizer::wantsRawData):
              (WebCore::ImageTokenizer::write):
              (WebCore::ImageTokenizer::writeRawData):
              (WebCore::ImageTokenizer::stopParsing):
              (WebCore::ImageTokenizer::finish):
              (WebCore::ImageTokenizer::isWaitingForScripts):
              (WebCore::ImageDocument::ImageDocument):
              (WebCore::ImageDocument::createTokenizer):
              * loader/ImageDocument.h: Added.
              Add new ImageDocument class which will feed its data to a created image element.
      
              * loader/TextDocument.h:
              Inherit from HTMLDocument here too, in case any broken web pages want to manipulate
              the DOM of any plain text documents.
              
              * page/Frame.cpp:
              (WebCore::Frame::begin):
              (WebCore::Frame::write):
              Don't create or use the decoder if the tokenizer is in "raw mode".
              
      WebKit:
      
      2006-05-16  Anders Carlsson  <acarlsson@apple.com>
      
              Reviewed by Maciej.
      
              http://bugzilla.opendarwin.org/show_bug.cgi?id=8921
              Use WebCore to render full-frame images
              
              * WebCoreSupport/WebFrameBridge.m:
              (-[WebFrameBridge determineObjectFromMIMEType:URL:]):
              Remove WebImageView handling.
              
              (-[WebFrameBridge mainResourceURLResponse]):
              New function which returns the URL response for the main resource. This is used by the
              manual loading of images.
              
              (-[WebFrameBridge imageTitleForFilename:size:]):
              New function which returns a correctly translated image title given a filename and a size.
              
              * WebCoreSupport/WebImageRenderer.m:
              (-[WebImageRenderer _startOrContinueAnimationIfNecessary]):
              Remove WebImageView handling.
              
              * WebKit.xcodeproj/project.pbxproj:
              Remove WebImageRepresentation and WebImageView.
              
              * WebView/WebArchiver.h:
              * WebView/WebArchiver.m:
              (+[WebArchiver archiveMainResourceForFrame:]):
              New functions which returns a WebArchive with just the main resource, ignoring any subresources.
              
              * WebView/WebDataSource.m:
              (+[WebDataSource _repTypesAllowImageTypeOmission:]):
              Use MIME types from WebHTMLRepresentation instead of WebImageRepresentation.
              
              * WebView/WebFrameView.m:
              (+[WebFrameView _viewTypesAllowImageTypeOmission:]):
              Use MIME types from WebHTMLRepresentation instead of WebImageRepresentation.
              
              (+[WebHTMLRepresentation supportedMIMETypes]):
              Create an array of image and non-image MIME Types.
              
              (+[WebHTMLRepresentation supportedNonImageMIMETypes]):
              (+[WebHTMLRepresentation supportedImageMIMETypes]):
              New functions, separating the list of MIME types into image and non-image ones.
              
              * WebView/WebHTMLView.m:
              (+[WebHTMLView supportedImageMIMETypes]):
              (+[WebHTMLView supportedNonImageMIMETypes]):
              New functions which call down to WebHTMLRepresentation.
              
              (-[WebHTMLView _startDraggingImage:at:operation:event:sourceIsDHTML:DHTMLWroteData:]):
              If the image element comes from an ImageDocument, just use an archive of the main resource
              instead of the generated HTML document.
              
              * WebView/WebHTMLViewPrivate.h:
              Declare new functions.
              
              * WebView/WebImageRepresentation.h: Removed.
              * WebView/WebImageRepresentation.m: Removed.
              * WebView/WebImageView.h: Removed.
              * WebView/WebImageView.m: Removed.
              
      LayoutTests:
      
      2006-05-16  Anders Carlsson  <acarlsson@apple.com>
      
              Reviewed by Maciej.
      
              http://bugzilla.opendarwin.org/show_bug.cgi?id=8921
              Use WebCore to render full-frame images.
      
              * css2.1/t0801-c412-hz-box-00-b-a-expected.txt:
              * dom/xhtml/level2/html/frame-expected.checksum:
              * dom/xhtml/level2/html/frame-expected.png:
              * dom/xhtml/level2/html/frame-expected.txt:
              * dom/xhtml/level2/html/iframe-expected.checksum:
              * dom/xhtml/level2/html/iframe-expected.png:
              * dom/xhtml/level2/html/iframe-expected.txt:
              * tables/mozilla/bugs/bug50695-2-expected.txt:
              Update tests.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14414 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e3516cb3
  26. 12 May, 2006 1 commit
    • mjs's avatar
      Reviewed by Brady. · d2eb1dea
      mjs authored
              
              http://bugzilla.opendarwin.org/show_bug.cgi?id=8876
              - move most private WebDataSource methods to uninstalled header
              
              I put the declarations for the ones only used in WebKit in WebDataSourceInternal.h
              and removed two entirey unused ones.
      
              * Plugins/WebNetscapePluginRepresentation.m:
              * Plugins/WebNetscapePluginStream.m:
              * Plugins/WebPluginController.m:
              * Plugins/WebPluginDocumentView.m:
              * WebCoreSupport/WebFrameBridge.m:
              (-[WebFrameBridge dataSource]):
              * WebCoreSupport/WebSubresourceLoader.m:
              * WebKit.xcodeproj/project.pbxproj:
              * WebView/WebDataSource.m:
              (-[WebDataSource _updateIconDatabaseWithURL:]):
              (-[WebDataSource _loadIcon]):
              (-[WebDataSource _clearErrors]):
              (-[WebDataSource _commitLoadWithData:]):
              (-[WebDataSource _doesProgressiveLoadWithMIMEType:]):
              (-[WebDataSource _addResponse:]):
              * WebView/WebDataSourceInternal.h: Added.
              * WebView/WebDataSourcePrivate.h:
              * WebView/WebFrame.m:
              * WebView/WebHTMLRepresentation.m:
              * WebView/WebHTMLView.m:
              * WebView/WebImageView.m:
              * WebView/WebLoader.m:
              * WebView/WebMainResourceLoader.m:
              * WebView/WebPDFView.m:
              * WebView/WebRenderNode.m:
              * WebView/WebView.m:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14333 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d2eb1dea
  27. 09 May, 2006 2 commits
    • andersca's avatar
      WebCore: · ba588c87
      andersca authored
      2006-05-09  Anders Carlsson  <acarlsson@apple.com>
      
              Reviewed by Darin.
      
              http://bugzilla.opendarwin.org/show_bug.cgi?id=8808
              WebCore should handle text files
              
              * WebCore.xcodeproj/project.pbxproj:
              Add TextDocument.cpp and TextDocument.h
              
              * bridge/mac/WebCoreFrameBridge.mm:
              (+[WebCoreFrameBridge supportedMIMETypes]):
              Add text types here.
              
              * dom/DOMImplementation.cpp:
              (WebCore::DOMImplementation::createTextDocument):
              (WebCore::DOMImplementation::isTextMIMEType):
              * dom/DOMImplementation.h:
              New functions for creating a TextDocument and determining if a 
              mime type is a text MIME type.
              
              * loader/TextDocument.cpp: Added.
              (WebCore::TextTokenizer::TextTokenizer):
              (WebCore::TextTokenizer::write):
              (WebCore::TextTokenizer::finish):
              (WebCore::TextTokenizer::isWaitingForScripts):
              Special tokenizer which will put text inside a <pre> tag
              in a document.
              
              (WebCore::TextDocument::TextDocument):        
              (WebCore::TextDocument::createTokenizer):
              Create a TextTokenizer.
              
              * loader/TextDocument.h: Added.
              
              * page/Frame.cpp:
              (WebCore::Frame::begin):
              Create a TextDocument if the MIME type is of type text.
      
      WebKit:
      
      2006-05-09  Anders Carlsson  <acarlsson@apple.com>
      
              Reviewed by Darin.
      
              http://bugzilla.opendarwin.org/show_bug.cgi?id=8808
              WebCore should handle text files
      
              * WebKit.exp:
              Remove WebTextView.
              
              * WebKit.xcodeproj/project.pbxproj:
              Get rid of WebTextView and WebTextRepresentation.
              
              * WebView/WebDataSource.m:
              (+[WebDataSource _repTypesAllowImageTypeOmission:]):
              * WebView/WebFrameView.m:
              (+[WebFrameView _viewTypesAllowImageTypeOmission:]):
              * WebView/WebHTMLView.m:
              The text MIME types are now handled by WebHTMLView.
              
              (+[WebHTMLView unsupportedTextMIMETypes]):
              New function, moved here from WebTextView.
              
              * WebView/WebHTMLViewPrivate.h:
              * WebView/WebTextRepresentation.h: Removed.
              * WebView/WebTextRepresentation.m: Removed.
              * WebView/WebTextView.h: Removed.
              * WebView/WebTextView.m: Removed.
              
              * WebView/WebView.m:
              (+[WebView _viewClass:andRepresentationClass:forMIMEType:]):
              Now special-case WebHTMLView instead of WebTextView for MIME types
              that shouldn't be shown.
      
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14258 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ba588c87
    • mjs's avatar
      WebCore: · dd13ab48
      mjs authored
              Reviewed by Tim Hatcher.
              
              - refactor things so that WebKit doesn't save a WebResource for every loaded URL,
              but rather retrieves the data from the WebCore cache as needed.
              http://bugzilla.opendarwin.org/show_bug.cgi?id=8802
      
              * bridge/mac/WebCoreFrameBridge.h:
              * bridge/mac/WebCoreFrameBridge.mm:
              (-[WebCoreFrameBridge getData:andResponse:forURL:]):
              (-[WebCoreFrameBridge getAllResourceDatas:andResponses:]):
              * loader/Cache.cpp:
              (WebCore::Cache::updateCacheStatus):
              (WebCore::Cache::requestImage):
              (WebCore::Cache::requestStyleSheet):
              (WebCore::Cache::requestScript):
              (WebCore::Cache::requestXSLStyleSheet):
              (WebCore::Cache::requestXBLDocument):
              * loader/Cache.h:
              * loader/CachedResource.cpp: Added.
              * loader/CachedResource.h: Added.
              * loader/CachedResourceClient.h: Added.
              * loader/CachedResourceClientWalker.cpp: Added.
              * loader/CachedResourceClientWalker.h: Added.
              * loader/DocLoader.cpp:
              (WebCore::DocLoader::setAutoloadImages):
              (WebCore::DocLoader::removeCachedObject):
              * loader/DocLoader.h:
              (WebCore::DocLoader::cachedObject):
              (WebCore::DocLoader::allCachedObjects):
      
      WebKit:
      
              Reviewed by Tim Hatcher.
              
              - refactor things so that WebKit doesn't save a WebResource for every loaded URL,
              but rather retrieves the data from the WebCore cache as needed.
              http://bugzilla.opendarwin.org/show_bug.cgi?id=8802
      
              * WebCoreSupport/WebFrameBridge.m:
              (-[WebFrameBridge objectLoadedFromCacheWithURL:response:data:]):
              (-[WebFrameBridge syncLoadResourceWithMethod:URL:customHeaders:postData:finalURL:responseHeaders:statusCode:]):
              * WebCoreSupport/WebSubresourceLoader.m:
              (-[WebSubresourceLoader didReceiveResponse:]):
              * WebView/WebDataSource.m:
              (-[WebDataSourcePrivate dealloc]):
              (-[WebDataSource _setupForReplaceByMIMEType:]):
              (-[WebDataSource _archivedSubresourceForURL:]):
              (-[WebDataSource initWithRequest:]):
              (-[WebDataSource subresources]):
              (-[WebDataSource subresourceForURL:]):
              (-[WebDataSource addSubresource:]):
              * WebView/WebDataSourcePrivate.h:
              * WebView/WebFrame.m:
              * WebView/WebFrameInternal.h:
              * WebView/WebHTMLView.m:
              * WebView/WebLoader.h:
              * WebView/WebLoader.m:
              (-[NSURLProtocol loadWithRequest:]):
              (-[NSURLProtocol didFinishLoading]):
              * WebView/WebUnarchivingState.h:
              * WebView/WebUnarchivingState.m:
              (-[WebUnarchivingState addResource:]):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14251 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      dd13ab48
  28. 28 Apr, 2006 1 commit
    • eseidel's avatar
      2006-04-28 Eric Seidel <eseidel@apple.com> · e9723dd0
      eseidel authored
              Reviewed by darin.
      
              Misc. style cleanup.
              http://bugzilla.opendarwin.org/show_bug.cgi?id=8643
      
              * Misc/WebIconDatabase.m:
              (-[NSMutableDictionary iconForURL:withSize:cache:]):
              (-[NSMutableDictionary iconURLForURL:]):
              (-[NSMutableDictionary retainIconForURL:]):
              (-[NSMutableDictionary releaseIconForURL:]):
              (-[WebIconDatabase _setIcon:forIconURL:]):
              (-[WebIconDatabase _iconsForIconURLString:]):
              (-[WebIconDatabase _forgetIconForIconURLString:]):
              (-[WebIconDatabase _releaseIconForIconURLString:]):
              (-[WebIconDatabase _iconsBySplittingRepresentationsOfIcon:]):
              * Plugins/WebBasePluginPackage.m:
              (+[WebBasePluginPackage pluginWithPath:]):
              (-[WebBasePluginPackage pathByResolvingSymlinksAndAliasesInPath:]):
              (-[WebBasePluginPackage initWithPath:]):
              (-[WebBasePluginPackage getPluginInfoFromBundleAndMIMEDictionary:]):
              (-[WebBasePluginPackage pListForPath:createFile:]):
              (-[WebBasePluginPackage getPluginInfoFromPLists]):
              (-[WebBasePluginPackage load]):
              (-[WebBasePluginPackage setMIMEToExtensionsDictionary:]):
              (-[WebBasePluginPackage isNativeLibraryData:]):
              (-[NSArray _web_lowercaseStrings]):
              * Plugins/WebNetscapePluginPackage.m:
              (-[WebNetscapePluginPackage openResourceFile]):
              (-[WebNetscapePluginPackage closeResourceFile:]):
              (-[WebNetscapePluginPackage stringForStringListID:andIndex:]):
              (-[WebNetscapePluginPackage getPluginInfoFromResources]):
              (-[WebNetscapePluginPackage initWithPath:]):
              (-[WebNetscapePluginPackage executableType]):
              (-[WebNetscapePluginPackage unloadWithoutShutdown]):
              (-[WebNetscapePluginPackage load]):
              (-[WebNetscapePluginPackage unload]):
              * Plugins/WebNetscapePluginRepresentation.m:
              (-[WebNetscapePluginRepresentation redeliverStream]):
              * Plugins/WebPluginDatabase.m:
              (+[WebPluginDatabase installedPlugins]):
              (-[WebPluginDatabase pluginForKey:withEnumeratorSelector:]):
              (-[WebPluginDatabase pluginForExtension:]):
              (pluginLocations):
              (-[WebPluginDatabase init]):
              (-[WebPluginDatabase refresh]):
              * Plugins/npapi.m:
              (NPN_MemAlloc):
              (NPN_MemFree):
              (pluginViewForInstance):
              * WebCoreSupport/WebSubresourceLoader.m:
              (+[WebSubresourceLoader startLoadingResource:withRequest:customHeaders:referrer:forDataSource:]):
              (-[WebSubresourceLoader willSendRequest:redirectResponse:]):
              * WebView/WebDataSource.m:
              (-[WebDataSource isLoading]):
              * WebView/WebFrame.m:
              (-[WebFrame _loadDataSource:withLoadType:formState:]):
              (-[WebFrame _subframeIsLoading]):
              * WebView/WebView.m:
              (-[WebView initWithFrame:]):
              (-[WebView initWithFrame:frameName:groupName:]):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14105 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e9723dd0