Remove spurious calls to GetPDFPage().
Change-Id: Id9435847ddd0448f7394b6331da529520d49743c
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/66470
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
diff --git a/fpdfsdk/formfiller/cffl_button.cpp b/fpdfsdk/formfiller/cffl_button.cpp
index 3520927..1ab48a1 100644
--- a/fpdfsdk/formfiller/cffl_button.cpp
+++ b/fpdfsdk/formfiller/cffl_button.cpp
@@ -49,7 +49,6 @@
return false;
m_bMouseDown = false;
- m_pWidget->GetPDFPage();
InvalidateRect(GetViewBBox(pPageView));
return true;
}
diff --git a/fpdfsdk/formfiller/cffl_combobox.cpp b/fpdfsdk/formfiller/cffl_combobox.cpp
index 588c50c..642471a 100644
--- a/fpdfsdk/formfiller/cffl_combobox.cpp
+++ b/fpdfsdk/formfiller/cffl_combobox.cpp
@@ -117,7 +117,6 @@
return;
SetChangeMark();
- m_pWidget->GetPDFPage();
}
void CFFL_ComboBox::GetActionData(CPDFSDK_PageView* pPageView,
diff --git a/fpdfsdk/formfiller/cffl_interactiveformfiller.cpp b/fpdfsdk/formfiller/cffl_interactiveformfiller.cpp
index b9e90a2..1e6d4a8 100644
--- a/fpdfsdk/formfiller/cffl_interactiveformfiller.cpp
+++ b/fpdfsdk/formfiller/cffl_interactiveformfiller.cpp
@@ -68,7 +68,6 @@
CFFL_FormFiller* pFormFiller = GetFormFiller(pAnnot);
if (pFormFiller && pFormFiller->IsValid()) {
pFormFiller->OnDraw(pPageView, pAnnot, pDevice, mtUser2Device);
- pAnnot->GetPDFPage();
if (m_pFormFillEnv->GetFocusAnnot() != pAnnot)
return;