Backed out changeset d7f27aa40260 (bug 1803355) for causing win build bustage.

This commit is contained in:
Sandor Molnar
2023-01-24 18:07:50 +02:00
parent 081d1b87e6
commit cd459846bb
88 changed files with 264 additions and 1166 deletions

View File

@@ -696,10 +696,7 @@ nsresult nsDocumentViewer::InitPresentationStuff(bool aDoInitialReflow) {
NS_ASSERTION(!mPresShell, "Someone should have destroyed the presshell!");
// Now make the shell for the document
nsCOMPtr<Document> doc = mDocument;
RefPtr<nsPresContext> presContext = mPresContext;
RefPtr<nsViewManager> viewManager = mViewManager;
mPresShell = doc->CreatePresShell(presContext, viewManager);
mPresShell = mDocument->CreatePresShell(mPresContext, mViewManager);
if (!mPresShell) {
return NS_ERROR_FAILURE;
}