Fixing printing crash bug 127891. Make the destruction of printing related frames not hide iframe's document viewers. r=rods@netscape.com, sr=rpotts@netscape.com

git-svn-id: svn://10.0.0.236/trunk@119570 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
jst%netscape.com
2002-04-22 23:12:18 +00:00
parent 20f9c744c4
commit 856750ef5c
6 changed files with 148 additions and 38 deletions

View File

@@ -1204,6 +1204,14 @@ nsHTMLFrameInnerFrame::Reflow(nsIPresContext* aPresContext,
aStatus = NS_FRAME_COMPLETE;
// If doing Printing or Print Preview return here
// the printing/print preview mechanism will resize the subshell
PRBool isPaginated;
aPresContext->IsPaginated(&isPaginated);
if (isPaginated) {
return NS_OK;
}
nsCOMPtr<nsIDocShell> docShell;
GetDocShell(getter_AddRefs(docShell));