Bug 811815 - A href links are not underlined/showing as links in Browser. r=jlebar a=blocking-basecamp

This commit is contained in:
Doug Turner 2012-11-29 21:41:40 -08:00
parent ee00a41700
commit 5501032117

View File

@ -90,15 +90,15 @@ Link::LinkState() const
return nsEventStates();
}
// Assume that we are not visited until we are told otherwise.
self->mLinkState = eLinkState_Unvisited;
// We have a good href, so register with History.
if (mHistory) {
nsresult rv = mHistory->RegisterVisitedCallback(hrefURI, self);
if (NS_SUCCEEDED(rv)) {
self->mRegistered = true;
// Assume that we are not visited until we are told otherwise.
self->mLinkState = eLinkState_Unvisited;
// And make sure we are in the document's link map.
nsIDocument *doc = element->GetCurrentDoc();
if (doc) {