Merge for backout of changeset cf4d10139ec0

This commit is contained in:
Shawn Wilsher 2010-02-18 10:05:37 -08:00
Родитель 05e7dc9c35 7928338245
Коммит 65f50e9f66
3 изменённых файлов: 4 добавлений и 13 удалений

Просмотреть файл

@ -58,11 +58,6 @@ Link::Link()
{
}
Link::~Link()
{
UnregisterFromHistory();
}
nsLinkState
Link::GetLinkState() const
{
@ -466,11 +461,13 @@ Link::UnregisterFromHistory()
return;
}
NS_ASSERTION(mCachedURI, "mRegistered is true, but we have no cached URI?!");
// Obtain the URI that we registered with.
nsCOMPtr<nsIURI> hrefURI(GetURI());
NS_ASSERTION(hrefURI, "mRegistered is true, but we have no URI?!");
// And tell History to stop tracking us.
IHistory *history = nsContentUtils::GetHistory();
nsresult rv = history->UnregisterVisitedCallback(mCachedURI, this);
nsresult rv = history->UnregisterVisitedCallback(hrefURI, this);
NS_ASSERTION(NS_SUCCEEDED(rv), "This should only fail if we misuse the API!");
if (NS_SUCCEEDED(rv)) {
mRegistered = false;

Просмотреть файл

@ -93,8 +93,6 @@ protected:
*/
virtual void ResetLinkState();
virtual ~Link();
private:
/**
* Unregisters from History so this node no longer gets notifications about

Просмотреть файл

@ -94,10 +94,6 @@ Link::Link()
{
}
Link::~Link()
{
}
nsLinkState
Link::GetLinkState() const
{