Revert "Revert "Add support for OOPIF printing in renderer""
https://chromium-review.googlesource.com/924566
This commit is contained in:
parent
93fc60720a
commit
7732da41ba
5 changed files with 8 additions and 9 deletions
|
@ -139,8 +139,7 @@ void PrintViewManagerBase::OnDidPrintPage(
|
|||
}
|
||||
}
|
||||
|
||||
std::unique_ptr<PdfMetafileSkia> metafile(
|
||||
new PdfMetafileSkia(SkiaDocumentType::PDF));
|
||||
auto metafile = std::make_unique<PdfMetafileSkia>();
|
||||
if (metafile_must_be_valid) {
|
||||
if (!metafile->InitFromData(shared_buf.memory(), params.data_size)) {
|
||||
NOTREACHED() << "Invalid metafile header";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue