Commit dcf60b5c authored by beidson@apple.com's avatar beidson@apple.com

2009-01-26 Brady Eidson <beidson@apple.com>

        Reviewed by Sam Weinig

        Remove some historical CachedPage time stamp fluff.

        * history/CachedPage.cpp:
        (WebCore::CachedPage::CachedPage):
        * history/CachedPage.h:
        (WebCore::CachedPage::timeStamp):

        * loader/FrameLoader.cpp:
        (WebCore::FrameLoader::cachePageForHistoryItem):



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@40267 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 62dc0010
2009-01-26 Brady Eidson <beidson@apple.com>
Reviewed by Sam Weinig
Remove some historical CachedPage time stamp fluff.
* history/CachedPage.cpp:
(WebCore::CachedPage::CachedPage):
* history/CachedPage.h:
(WebCore::CachedPage::timeStamp):
* loader/FrameLoader.cpp:
(WebCore::FrameLoader::cachePageForHistoryItem):
2009-01-26 David Hyatt <hyatt@apple.com>
Move absoluteClippedOverflowRect, linesBoundingBox and borderBoundingBox from RenderFlow to RenderInline.
......@@ -47,7 +47,7 @@ PassRefPtr<CachedPage> CachedPage::create(Page* page)
}
CachedPage::CachedPage(Page* page)
: m_timeStamp(0)
: m_timeStamp(currentTime())
, m_cachedMainFrame(page->mainFrame())
{
#ifndef NDEBUG
......@@ -83,21 +83,6 @@ void CachedPage::clear()
m_cachedMainFrame.clear();
}
void CachedPage::setTimeStamp(double timeStamp)
{
m_timeStamp = timeStamp;
}
void CachedPage::setTimeStampToNow()
{
m_timeStamp = currentTime();
}
double CachedPage::timeStamp() const
{
return m_timeStamp;
}
void CachedPage::setCachedFramePlatformData(CachedFramePlatformData* data)
{
m_cachedMainFrame.setCachedFramePlatformData(data);
......
......@@ -55,9 +55,7 @@ public:
const KURL& url() const { return m_cachedMainFrame.url(); }
DOMWindow* domWindow() const { return m_cachedMainFrame.domWindow(); }
void setTimeStamp(double);
void setTimeStampToNow();
double timeStamp() const;
double timeStamp() const { return m_timeStamp; }
void setCachedFramePlatformData(CachedFramePlatformData*);
CachedFramePlatformData* cachedFramePlatformData();
......
......@@ -4239,7 +4239,6 @@ void FrameLoader::cachePageForHistoryItem(HistoryItem* item)
{
if (Page* page = m_frame->page()) {
RefPtr<CachedPage> cachedPage = CachedPage::create(page);
cachedPage->setTimeStampToNow();
m_client->savePlatformDataToCachedPage(cachedPage.get());
pageCache()->add(item, cachedPage.release());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment