diff options
author | dsinclair <dsinclair@chromium.org> | 2016-11-02 13:02:28 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-11-02 13:02:28 -0700 |
commit | 521b7508dfe8ab93975eeb9f4ef8068012c4dbd8 (patch) | |
tree | d51fec17bafc8c4ac70a7f80932749551ee6e5ff /fpdfsdk/cpdfsdk_widgethandler.cpp | |
parent | 25ec646b2c128a6beaa961ec2b2eeb673ed034ca (diff) | |
download | pdfium-521b7508dfe8ab93975eeb9f4ef8068012c4dbd8.tar.xz |
Rename CPDFXFA_Document to CPDFXFA_Context
The CPDFXFA_Document class isn't a document, it contains documents. Renamed
to make the purpose a bit clearer.
Review-Url: https://codereview.chromium.org/2469813004
Diffstat (limited to 'fpdfsdk/cpdfsdk_widgethandler.cpp')
-rw-r--r-- | fpdfsdk/cpdfsdk_widgethandler.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fpdfsdk/cpdfsdk_widgethandler.cpp b/fpdfsdk/cpdfsdk_widgethandler.cpp index daa97b4dba..715faa9c35 100644 --- a/fpdfsdk/cpdfsdk_widgethandler.cpp +++ b/fpdfsdk/cpdfsdk_widgethandler.cpp @@ -20,7 +20,7 @@ #include "fpdfsdk/formfiller/cffl_formfiller.h" #ifdef PDF_ENABLE_XFA -#include "fpdfsdk/fpdfxfa/cpdfxfa_document.h" +#include "fpdfsdk/fpdfxfa/cpdfxfa_context.h" #endif // PDF_ENABLE_XFA CPDFSDK_WidgetHandler::CPDFSDK_WidgetHandler( @@ -239,8 +239,8 @@ void CPDFSDK_WidgetHandler::OnLoad(CPDFSDK_Annot* pAnnot) { #ifdef PDF_ENABLE_XFA CPDFSDK_PageView* pPageView = pAnnot->GetPageView(); - CPDFXFA_Document* pDoc = pPageView->GetFormFillEnv()->GetXFADocument(); - if (pDoc->GetDocType() == DOCTYPE_STATIC_XFA) { + CPDFXFA_Context* pContext = pPageView->GetFormFillEnv()->GetXFAContext(); + if (pContext->GetDocType() == DOCTYPE_STATIC_XFA) { if (!pWidget->IsAppearanceValid() && !pWidget->GetValue().IsEmpty()) pWidget->ResetAppearance(FALSE); } |