diff options
author | Tom Sepez <tsepez@chromium.org> | 2018-04-27 19:31:48 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-04-27 19:31:48 +0000 |
commit | 2b053ce82e921984ee191b26fe9a760ba1508a66 (patch) | |
tree | 208b644713ee6341bc89f010f3798242bd08db61 /fxjs/cjs_field.cpp | |
parent | 96723705bfa2f569d1b67541f08c8fbc86a18ec7 (diff) | |
download | pdfium-2b053ce82e921984ee191b26fe9a760ba1508a66.tar.xz |
Remove argument from CPDFSDK_FormFillEnvironment::GetCurrentPage
Small tidying.
The form fill environment is 1:1 with documents, and already knows
its underlying document. The callers all first obtain this from the
FFE and then pass it back into it.
Change-Id: I33835c1dc847ca67f2cc633c87af2f6e003ef58a
Reviewed-on: https://pdfium-review.googlesource.com/31591
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'fxjs/cjs_field.cpp')
-rw-r--r-- | fxjs/cjs_field.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fxjs/cjs_field.cpp b/fxjs/cjs_field.cpp index 3ae40a97a8..1e9e389d84 100644 --- a/fxjs/cjs_field.cpp +++ b/fxjs/cjs_field.cpp @@ -2531,8 +2531,7 @@ CJS_Return CJS_Field::setFocus( pWidget = pInterForm->GetWidget(pFormField->GetControl(0)); } else { UnderlyingPageType* pPage = - UnderlyingFromFPDFPage(m_pFormFillEnv->GetCurrentPage( - m_pFormFillEnv->GetUnderlyingDocument())); + UnderlyingFromFPDFPage(m_pFormFillEnv->GetCurrentPage()); if (!pPage) return CJS_Return(false); if (CPDFSDK_PageView* pCurPageView = |