summaryrefslogtreecommitdiff
path: root/fpdfsdk/fpdfview.cpp
diff options
context:
space:
mode:
authordsinclair <dsinclair@chromium.org>2016-10-11 09:26:32 -0700
committerCommit bot <commit-bot@chromium.org>2016-10-11 09:26:32 -0700
commitb402b1738d665561dd1bb7ffba0c3f3d49425086 (patch)
treeb7542f810c1d9199179dc60e5cdd43a5c794b880 /fpdfsdk/fpdfview.cpp
parent690c033e86b34f7a9c3d4be15759c63ef9360217 (diff)
downloadpdfium-b402b1738d665561dd1bb7ffba0c3f3d49425086.tar.xz
Convert CPDFSDK_PageView to have a CPDFSDK_FormFillEnvironment
This CL changes CPDFSDK_PageView to have a CPDFSDK_FormFillEnvironment instead of a CPDFSDK_Document. Review-Url: https://codereview.chromium.org/2400673002
Diffstat (limited to 'fpdfsdk/fpdfview.cpp')
-rw-r--r--fpdfsdk/fpdfview.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/fpdfsdk/fpdfview.cpp b/fpdfsdk/fpdfview.cpp
index 001ebb0dc5..41fdc64c74 100644
--- a/fpdfsdk/fpdfview.cpp
+++ b/fpdfsdk/fpdfview.cpp
@@ -26,6 +26,7 @@
#include "core/fxcrt/fx_safe_types.h"
#include "core/fxge/cfx_fxgedevice.h"
#include "core/fxge/cfx_gemodule.h"
+#include "fpdfsdk/cpdfsdk_formfillenvironment.h"
#include "fpdfsdk/cpdfsdk_pageview.h"
#include "fpdfsdk/fsdk_define.h"
#include "fpdfsdk/fsdk_pauseadapter.h"
@@ -684,7 +685,7 @@ DLLEXPORT void STDCALL FPDF_ClosePage(FPDF_PAGE page) {
// This will delete the |pPageView| object. We must cleanup the PageView
// first because it will attempt to reset the View on the |pPage| during
// destruction.
- pPageView->GetSDKDocument()->RemovePageView(pPage);
+ pPageView->GetFormFillEnv()->GetSDKDocument()->RemovePageView(pPage);
// If the page was owned then the pageview will have deleted the page.
if (owned)
return;