Fix for bug 183999 (Modernize content). r=caillon, sr=bz.

git-svn-id: svn://10.0.0.236/trunk@135128 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
peterv%netscape.com
2002-12-11 14:24:49 +00:00
parent c581b7a67f
commit 3a3c75b9f7
107 changed files with 1197 additions and 1703 deletions

View File

@@ -4788,19 +4788,18 @@ int RemoveFilesInDir(const char * aDir)
*/
static void RootFrameList(nsIPresContext* aPresContext, FILE* out, PRInt32 aIndent)
{
if((nsnull == aPresContext) || (nsnull == out))
if (!aPresContext || !out)
return;
nsCOMPtr<nsIPresShell> shell;
aPresContext->GetShell(getter_AddRefs(shell));
if (nsnull != shell) {
if (shell) {
nsIFrame* frame;
shell->GetRootFrame(&frame);
if(nsnull != frame) {
if (frame) {
nsIFrameDebug* debugFrame;
nsresult rv;
rv = frame->QueryInterface(NS_GET_IID(nsIFrameDebug), (void**)&debugFrame);
if(NS_SUCCEEDED(rv))
nsresult rv = CallQueryInterface(frame, &debugFrame);
if (NS_SUCCEEDED(rv))
debugFrame->List(aPresContext, out, aIndent);
}
}