Set the container for the printContext. Fixes an Assert, but not the entire bug. r=Rods b=21470

This commit is contained in:
dcone%netscape.com 2000-01-11 22:32:23 +00:00
parent 683215d57d
commit dcdec2846c
3 changed files with 3 additions and 0 deletions

View File

@ -1059,6 +1059,7 @@ nsCOMPtr<nsIPref> prefs;
mPrintDC->GetDeviceSurfaceDimensions(width,height);
mPresContext->GetPrefs(getter_AddRefs(prefs));
mPrintPC->Init(mPrintDC,prefs);
mPrintPC->SetContainer(webContainer);
CreateStyleSet(mDocument,&mPrintSS);
rv = NS_NewPresShell(&mPrintPS);

View File

@ -1059,6 +1059,7 @@ nsCOMPtr<nsIPref> prefs;
mPrintDC->GetDeviceSurfaceDimensions(width,height);
mPresContext->GetPrefs(getter_AddRefs(prefs));
mPrintPC->Init(mPrintDC,prefs);
mPrintPC->SetContainer(webContainer);
CreateStyleSet(mDocument,&mPrintSS);
rv = NS_NewPresShell(&mPrintPS);

View File

@ -1059,6 +1059,7 @@ nsCOMPtr<nsIPref> prefs;
mPrintDC->GetDeviceSurfaceDimensions(width,height);
mPresContext->GetPrefs(getter_AddRefs(prefs));
mPrintPC->Init(mPrintDC,prefs);
mPrintPC->SetContainer(webContainer);
CreateStyleSet(mDocument,&mPrintSS);
rv = NS_NewPresShell(&mPrintPS);