WebCore:
Reviewed by John Sullivan.
- work toward removing Objective-C data types from FrameLoader.h:
removed NSDate, NSString, WebCorePageState, WebCoreResourceLoader,
and WebCoreResourceHandle
- moved bodyBackgroundColor function from Frame to WebFrame in WebKit
* page/PageState.h:
* page/PageState.cpp: Added, C++ class with much of what WebCorePageState had.
* bridge/mac/FrameMac.h: Removed uneeeded declarations and bodyBackgroundColor().
* bridge/mac/FrameMac.mm: (WebCore::FrameMac::startRedirectionTimer): Use a
double for the date instead of an NSDate.
* bridge/mac/WebCoreFrameBridge.h:
* bridge/mac/WebCoreFrameBridge.mm: Removed invalidatePageCache and
saveDocumentToPageCache methods.
* bridge/mac/WebCorePageState.h:
* bridge/mac/WebCorePageState.mm: Removed most of the class and turned it into
an Objective-C wrapper for PageState.
* loader/FrameLoader.h: Removed unused Objective-C types, eliminated use of
NSDate and WebCorePageState.
* loader/FrameLoaderClient.h: Changed NSDate to double.
* loader/mac/FrameLoaderMac.mm:
(WebCore::FrameLoader::receivedMainResourceError): Moved call to setInPageCache
here that used to be in invalidateCurrentItemPageCache on the WebKit side.
(WebCore::FrameLoader::clientRedirected): Changed NSDate to double for date.
(WebCore::FrameLoader::open): Moved one of the open functions that was part of
commitProvisionalLoad inside the commitProvisionalLoad function, so that it can
extract the parameters from the response. Changed the open function that takes
a PageState to use the new C++ PageState.
(WebCore::FrameLoader::commitProvisionalLoad): Added the code from the open
function; tightened up logic, removing a few cases that could never happen, as
well as the unused reload boolean.
* ForwardingHeaders/kjs/property_map.h: Added.
* WebCore.exp: Updated.
* WebCore.xcodeproj/project.pbxproj: Updated.
WebKit:
Reviewed by John Sullivan.
- work toward removing Objective-C data types from FrameLoader.h:
removed NSDate, NSString, WebCorePageState, WebCoreResourceLoader,
and WebCoreResourceHandle
- moved bodyBackgroundColor function here from Frame
* History/WebHistoryItem.m: (+[WebHistoryItem _closeObjectsInPendingPageCaches]):
Updated for change in WebCorePageState.
* WebCoreSupport/WebFrameBridge.mm: Removed saveDocumentToPageCache method.
* WebCoreSupport/WebFrameLoaderClient.h: Changed NSDate to double.
* WebCoreSupport/WebFrameLoaderClient.mm:
(WebFrameLoaderClient::invalidateCurrentItemPageCache): Moved the code that was
formerly in invalidatePageCache: on the bridge here.
(WebFrameLoaderClient::dispatchWillPerformClientRedirect): Added code to make the
NSDate here.
(WebFrameLoaderClient::createPageCache): Restructured code to create the
WebCorePageState object directly instead of calling saveDocumentToPageCache on
the bridge.
* WebView/WebFrame.mm: (-[WebFrame _bodyBackgroundColor]): Rewrote this to work
directly with the DOM and renderers rather than using a function on Frame.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@17438
268f45cc-cd09-0410-ab3c-
d52691b4dbfc