diff options
author | dsinclair <dsinclair@chromium.org> | 2016-10-13 10:48:22 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-10-13 10:48:22 -0700 |
commit | abefb79577b32d291d14d7e01a70f6f8cf213bd3 (patch) | |
tree | 489ab4a6f8ddc0d7de4359e186134292434e2ea0 /fpdfsdk/fpdfformfill.cpp | |
parent | d66f9d0b1fb0af57960f9c7163c475968505ee4a (diff) | |
download | pdfium-abefb79577b32d291d14d7e01a70f6f8cf213bd3.tar.xz |
Make the CPDFXFA_App non-global
This CL changes CPDFXFA_App from a global object to a child of the
CPDFXFA_Document objects.
BUG=pdfium:623
Review-Url: https://codereview.chromium.org/2416753002
Diffstat (limited to 'fpdfsdk/fpdfformfill.cpp')
-rw-r--r-- | fpdfsdk/fpdfformfill.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/fpdfsdk/fpdfformfill.cpp b/fpdfsdk/fpdfformfill.cpp index 34e206d6bc..0f44b1dfa2 100644 --- a/fpdfsdk/fpdfformfill.cpp +++ b/fpdfsdk/fpdfformfill.cpp @@ -258,7 +258,6 @@ FPDFDOC_InitFormFillEnvironment(FPDF_DOCUMENT document, #ifdef PDF_ENABLE_XFA pDocument->SetFormFillEnv(pFormFillEnv); - CPDFXFA_App::GetInstance()->AddFormFillEnv(pFormFillEnv); #endif // PDF_ENABLE_XFA return pFormFillEnv; @@ -273,8 +272,6 @@ FPDFDOC_ExitFormFillEnvironment(FPDF_FORMHANDLE hHandle) { HandleToCPDFSDKEnvironment(hHandle); #ifdef PDF_ENABLE_XFA - CPDFXFA_App::GetInstance()->RemoveFormFillEnv(pFormFillEnv); - // Reset the focused annotations and remove the SDK document from the // XFA document. pFormFillEnv->ClearAllFocusedAnnots(); |