diff --git a/mozilla/xpfe/appshell/src/nsWebShellWindow.cpp b/mozilla/xpfe/appshell/src/nsWebShellWindow.cpp index 5911922d40f..1f1d42d13e1 100644 --- a/mozilla/xpfe/appshell/src/nsWebShellWindow.cpp +++ b/mozilla/xpfe/appshell/src/nsWebShellWindow.cpp @@ -812,7 +812,7 @@ PRInt32 nsWebShellWindow::GetDocHeight(nsIDocument * aDoc) if (presShell) { nsCOMPtr presContext; presShell->GetPresContext(getter_AddRefs(presContext)); - if (nsnull != presContext) { + if (presContext) { nsRect rect; presContext->GetVisibleArea(rect); nsIFrame * rootFrame;