mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-01 00:32:11 +00:00
Bug 1804017 - Fix asserts when ReflowPrintObject is called multiple times on the same print job r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D163877
This commit is contained in:
parent
f60a47ad27
commit
e9b7eac405
@ -1391,8 +1391,8 @@ nsresult nsPrintJob::ReflowPrintObject(const UniquePtr<nsPrintObject>& aPO) {
|
||||
}
|
||||
break;
|
||||
}
|
||||
mMaybeCSSPageLandscape.emplace(maybeOrientation.value() ==
|
||||
StylePageSizeOrientation::Landscape);
|
||||
mMaybeCSSPageLandscape =
|
||||
Some(maybeOrientation.value() == StylePageSizeOrientation::Landscape);
|
||||
aPO->mPresContext->SetPageSize(pageSize);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user