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