Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(864)

Unified Diff: pdf/pdfium/pdfium_engine.cc

Issue 2917053002: Remove PDF XFA shutdown workaround. (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pdf/pdfium/pdfium_engine.cc
diff --git a/pdf/pdfium/pdfium_engine.cc b/pdf/pdfium/pdfium_engine.cc
index 36790be7d350bc210cfa797b87a3a27c58b5f6f6..37c01618778ebd942421fbab1c4c6f6b8a3affcf 100644
--- a/pdf/pdfium/pdfium_engine.cc
+++ b/pdf/pdfium/pdfium_engine.cc
@@ -780,16 +780,8 @@ PDFiumEngine::~PDFiumEngine() {
if (doc_) {
FORM_DoDocumentAAction(form_, FPDFDOC_AACTION_WC);
-
-#if defined(PDF_ENABLE_XFA)
- // XFA may require |form_| to outlive |doc_|, so shut down in that order.
- FPDF_CloseDocument(doc_);
- FPDFDOC_ExitFormFillEnvironment(form_);
-#else
- // Normally |doc_| should outlive |form_|.
FPDFDOC_ExitFormFillEnvironment(form_);
FPDF_CloseDocument(doc_);
-#endif
}
FPDFAvail_Destroy(fpdf_availability_);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698