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

Unified Diff: fpdfsdk/fpdfsave.cpp

Issue 1857893002: Cleanup the FF Handler proxy methods. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 8 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 | « fpdfsdk/fpdfformfill.cpp ('k') | fpdfsdk/fpdfxfa/fpdfxfa_doc.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: fpdfsdk/fpdfsave.cpp
diff --git a/fpdfsdk/fpdfsave.cpp b/fpdfsdk/fpdfsave.cpp
index b9d393e505e1743e203efea173fd18234908077c..11a22ac8547689185541ee0d7ea1d5306fdfd90b 100644
--- a/fpdfsdk/fpdfsave.cpp
+++ b/fpdfsdk/fpdfsave.cpp
@@ -91,8 +91,6 @@ bool SaveXFADocumentData(CPDFXFA_Document* pDocument,
if (!pXFADocView)
return true;
- CXFA_FFDocHandler* pXFADocHandler =
- CPDFXFA_App::GetInstance()->GetXFAApp()->GetDocHandler();
CPDF_Document* pPDFDocument = pDocument->GetPDFDoc();
if (!pDocument)
return false;
@@ -177,9 +175,8 @@ bool SaveXFADocumentData(CPDFXFA_Document* pDocument,
// L"datasets"
{
ScopedFileStream pDsfileWrite(FX_CreateMemoryStream());
- if (pXFADocHandler->SavePackage(pXFADocView->GetDoc(),
- CFX_WideStringC(L"datasets"),
- pDsfileWrite.get()) &&
+ if (pXFADocView->GetDoc()->SavePackage(CFX_WideStringC(L"datasets"),
+ pDsfileWrite.get()) &&
pDsfileWrite->GetSize() > 0) {
// Datasets
pContext->UpdateChecksum(pDsfileWrite.get());
@@ -202,9 +199,8 @@ bool SaveXFADocumentData(CPDFXFA_Document* pDocument,
// L"form"
{
ScopedFileStream pfileWrite(FX_CreateMemoryStream());
- if (pXFADocHandler->SavePackage(pXFADocView->GetDoc(),
- CFX_WideStringC(L"form"), pfileWrite.get(),
- pContext.get()) &&
+ if (pXFADocView->GetDoc()->SavePackage(CFX_WideStringC(L"form"),
+ pfileWrite.get(), pContext.get()) &&
pfileWrite->GetSize() > 0) {
CPDF_Dictionary* pDataDict = new CPDF_Dictionary;
if (iFormIndex != -1) {
« no previous file with comments | « fpdfsdk/fpdfformfill.cpp ('k') | fpdfsdk/fpdfxfa/fpdfxfa_doc.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698