diff options
author | Tom Sepez <tsepez@chromium.org> | 2018-06-12 13:36:05 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-06-12 13:36:05 +0000 |
commit | 101535f463dda5766f99b66f383672d5898556fe (patch) | |
tree | 04ca2226b850756c67dd29444545f4b91682835c /fpdfsdk/fpdf_editpage.cpp | |
parent | 755b0e5f71518488456e7cffc64fd7ba89692e68 (diff) | |
download | pdfium-101535f463dda5766f99b66f383672d5898556fe.tar.xz |
Rework "Make common page base class."
Re-landing of https://pdfium-review.googlesource.com/c/pdfium/+/32892
This time, however, we do not build on the previous CL which cached
pages. This CL by itself should be OK but was reverted only because
it was blocking earlier reverts.
Change-Id: I067d5f07373eeac6cced5d0c113ea40e5f8dcd15
Reviewed-on: https://pdfium-review.googlesource.com/34910
Commit-Queue: dsinclair <dsinclair@chromium.org>
Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'fpdfsdk/fpdf_editpage.cpp')
-rw-r--r-- | fpdfsdk/fpdf_editpage.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fpdfsdk/fpdf_editpage.cpp b/fpdfsdk/fpdf_editpage.cpp index d8b39b4d08..9dcd470978 100644 --- a/fpdfsdk/fpdf_editpage.cpp +++ b/fpdfsdk/fpdf_editpage.cpp @@ -197,14 +197,14 @@ FPDF_EXPORT FPDF_PAGE FPDF_CALLCONV FPDFPage_New(FPDF_DOCUMENT document, if (pContext) { auto pXFAPage = pdfium::MakeRetain<CPDFXFA_Page>(pContext, page_index); pXFAPage->LoadPDFPage(pPageDict); - return FPDFPageFromUnderlying(pXFAPage.Leak()); // Caller takes ownership. + return FPDFPageFromIPDFPage(pXFAPage.Leak()); // Caller takes ownership. } // Eventually, fallthru into non-XFA case once page type is consistent. return nullptr; #else // PDF_ENABLE_XFA auto pPage = pdfium::MakeRetain<CPDF_Page>(pDoc, pPageDict, true); pPage->ParseContent(); - return FPDFPageFromUnderlying(pPage.Leak()); // Caller takes ownership. + return FPDFPageFromIPDFPage(pPage.Leak()); // Caller takes ownership. #endif // PDF_ENABLE_XFA } |