From 2b053ce82e921984ee191b26fe9a760ba1508a66 Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Fri, 27 Apr 2018 19:31:48 +0000 Subject: 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 Commit-Queue: Tom Sepez --- fxjs/cjs_field.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'fxjs/cjs_field.cpp') 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 = -- cgit v1.2.3