Index: WebCore/history/HistoryItem.cpp |
=================================================================== |
--- WebCore/history/HistoryItem.cpp (revision 78375) |
+++ WebCore/history/HistoryItem.cpp (working copy) |
@@ -60,6 +60,8 @@ |
, m_visitCount(0) |
, m_itemSequenceNumber(generateSequenceNumber()) |
, m_documentSequenceNumber(generateSequenceNumber()) |
+ , m_next(0) |
+ , m_prev(0) |
{ |
} |
@@ -74,6 +76,8 @@ |
, m_visitCount(0) |
, m_itemSequenceNumber(generateSequenceNumber()) |
, m_documentSequenceNumber(generateSequenceNumber()) |
+ , m_next(0) |
+ , m_prev(0) |
{ |
iconDatabase()->retainIconForPageURL(m_urlString); |
} |
@@ -90,6 +94,8 @@ |
, m_visitCount(0) |
, m_itemSequenceNumber(generateSequenceNumber()) |
, m_documentSequenceNumber(generateSequenceNumber()) |
+ , m_next(0) |
+ , m_prev(0) |
{ |
iconDatabase()->retainIconForPageURL(m_urlString); |
} |
@@ -107,6 +113,8 @@ |
, m_visitCount(0) |
, m_itemSequenceNumber(generateSequenceNumber()) |
, m_documentSequenceNumber(generateSequenceNumber()) |
+ , m_next(0) |
+ , m_prev(0) |
{ |
iconDatabase()->retainIconForPageURL(m_urlString); |
} |
@@ -159,6 +167,38 @@ |
return adoptRef(new HistoryItem(*this)); |
} |
+void HistoryItem::reset() |
+{ |
+ iconDatabase()->releaseIconForPageURL(m_urlString); |
+ |
+ m_urlString = String(); |
+ m_originalURLString = String(); |
+ m_referrer = String(); |
+ m_target = String(); |
+ m_parent = String(); |
+ m_title = String(); |
+ m_displayTitle = String(); |
+ |
+ m_lastVisitedTime = 0; |
+ m_lastVisitWasHTTPNonGet = false; |
+ |
+ m_lastVisitWasFailure = false; |
+ m_isTargetItem = false; |
+ m_visitCount = 0; |
+ m_dailyVisitCounts.clear(); |
+ m_weeklyVisitCounts.clear(); |
+ |
+ m_redirectURLs.clear(); |
+ |
+ m_itemSequenceNumber = generateSequenceNumber(); |
+ |
+ m_stateObject = 0; |
+ m_documentSequenceNumber = generateSequenceNumber(); |
+ |
+ m_formData = 0; |
+ m_formContentType = String(); |
+} |
+ |
const String& HistoryItem::urlString() const |
{ |
return m_urlString; |