mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-14 02:31:59 +00:00
Set the container for the printContext. Fixes an Assert, but not the entire bug. r=Rods b=21470
This commit is contained in:
parent
683215d57d
commit
dcdec2846c
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user