Fix bug 232798 -- make sure to set the link handler on the prescontext to null

when destroying the document viewer.  r+sr=jst


git-svn-id: svn://10.0.0.236/trunk@152656 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bzbarsky%mit.edu
2004-02-11 06:48:37 +00:00
parent 16b26bbf1b
commit 886fd90b55
3 changed files with 31 additions and 20 deletions

View File

@@ -3157,11 +3157,8 @@ nsDocShell::GetPositionAndSize(PRInt32 * x, PRInt32 * y, PRInt32 * cx,
NS_IMETHODIMP
nsDocShell::Repaint(PRBool aForce)
{
nsCOMPtr<nsIDocumentViewer> docViewer(do_QueryInterface(mContentViewer));
NS_ENSURE_TRUE(docViewer, NS_ERROR_FAILURE);
nsCOMPtr<nsIPresContext> context;
docViewer->GetPresContext(getter_AddRefs(context));
GetPresContext(getter_AddRefs(context));
NS_ENSURE_TRUE(context, NS_ERROR_FAILURE);
nsIViewManager* viewManager = context->GetViewManager();