From cf3816187f6cbee5569a5924dc1ce1074ffcad7a Mon Sep 17 00:00:00 2001 From: dsinclair Date: Tue, 11 Oct 2016 14:11:16 -0700 Subject: Remove remaining CPDFSDK_Document references Review-Url: https://codereview.chromium.org/2399213002 --- fpdfsdk/formfiller/cffl_formfiller.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'fpdfsdk/formfiller/cffl_formfiller.cpp') diff --git a/fpdfsdk/formfiller/cffl_formfiller.cpp b/fpdfsdk/formfiller/cffl_formfiller.cpp index 6369b45d7e..e2e99c9a22 100644 --- a/fpdfsdk/formfiller/cffl_formfiller.cpp +++ b/fpdfsdk/formfiller/cffl_formfiller.cpp @@ -251,8 +251,8 @@ FX_BOOL CFFL_FormFiller::OnChar(CPDFSDK_Annot* pAnnot, void CFFL_FormFiller::SetFocusForAnnot(CPDFSDK_Annot* pAnnot, uint32_t nFlag) { CPDFSDK_Widget* pWidget = (CPDFSDK_Widget*)pAnnot; UnderlyingPageType* pPage = pWidget->GetUnderlyingPage(); - CPDFSDK_Document* pDoc = m_pEnv->GetSDKDocument(); - CPDFSDK_PageView* pPageView = pDoc->GetPageView(pPage, true); + CPDFSDK_PageView* pPageView = + m_pEnv->GetSDKDocument()->GetPageView(pPage, true); if (CPWL_Wnd* pWnd = GetPDFWindow(pPageView, TRUE)) pWnd->SetFocus(); @@ -458,8 +458,7 @@ CFX_FloatRect CFFL_FormFiller::GetPDFWindowRect() const { CPDFSDK_PageView* CFFL_FormFiller::GetCurPageView(bool renew) { UnderlyingPageType* pPage = m_pAnnot->GetUnderlyingPage(); - CPDFSDK_Document* pSDKDoc = m_pEnv->GetSDKDocument(); - return pSDKDoc ? pSDKDoc->GetPageView(pPage, renew) : nullptr; + return m_pEnv ? m_pEnv->GetSDKDocument()->GetPageView(pPage, renew) : nullptr; } CFX_FloatRect CFFL_FormFiller::GetFocusBox(CPDFSDK_PageView* pPageView) { -- cgit v1.2.3