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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user