fix for 71511 - clean up nsIGlobalHistory even further by refactoring setTitle i

nto nsIBrowserHistory, cleaning up extra addPage() parameters, and fixing all co
nsumers
r=valeski, sr=shaver
This commit is contained in:
alecf@netscape.com
2001-03-13 06:19:40 +00:00
parent d360f4b373
commit 11ddf8d3d6
7 changed files with 42 additions and 67 deletions

View File

@@ -853,14 +853,11 @@ nsWebShell::GetLinkState(const char* aLinkURI, nsLinkState& aState)
if(mGlobalHistory)
{
PRInt64 lastVisitDate;
NS_ENSURE_SUCCESS(mGlobalHistory->GetLastVisitDate(aLinkURI,
&lastVisitDate), NS_ERROR_FAILURE);
// a last-visit-date of zero means we've never seen it before; so
// if it's not zero, we must've seen it.
if(!LL_IS_ZERO(lastVisitDate))
aState = eLinkState_Visited;
PRBool isVisited;
NS_ENSURE_SUCCESS(mGlobalHistory->IsVisited(aLinkURI, &isVisited),
NS_ERROR_FAILURE);
if (isVisited)
aState = eLinkState_Visited;
// XXX how to tell if eLinkState_OutOfDate?
}