summaryrefslogtreecommitdiff
path: root/fpdfsdk/formfiller/cffl_formfiller.cpp
diff options
context:
space:
mode:
authordsinclair <dsinclair@chromium.org>2016-10-11 14:11:16 -0700
committerCommit bot <commit-bot@chromium.org>2016-10-11 14:11:16 -0700
commitcf3816187f6cbee5569a5924dc1ce1074ffcad7a (patch)
treeb613dde08108d0c438e8376b8060afae8203a2a3 /fpdfsdk/formfiller/cffl_formfiller.cpp
parent655fccab2f80af3a0e160116f30796e2da77f919 (diff)
downloadpdfium-cf3816187f6cbee5569a5924dc1ce1074ffcad7a.tar.xz
Remove remaining CPDFSDK_Document references
Review-Url: https://codereview.chromium.org/2399213002
Diffstat (limited to 'fpdfsdk/formfiller/cffl_formfiller.cpp')
-rw-r--r--fpdfsdk/formfiller/cffl_formfiller.cpp7
1 files changed, 3 insertions, 4 deletions
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) {