summaryrefslogtreecommitdiff
path: root/core/fpdfdoc
diff options
context:
space:
mode:
Diffstat (limited to 'core/fpdfdoc')
-rw-r--r--core/fpdfdoc/cpdf_formfield.cpp4
-rw-r--r--core/fpdfdoc/cpdf_formfield.h5
2 files changed, 5 insertions, 4 deletions
diff --git a/core/fpdfdoc/cpdf_formfield.cpp b/core/fpdfdoc/cpdf_formfield.cpp
index a076b150a8..4cb9496af9 100644
--- a/core/fpdfdoc/cpdf_formfield.cpp
+++ b/core/fpdfdoc/cpdf_formfield.cpp
@@ -250,6 +250,10 @@ bool CPDF_FormField::ResetField(NotificationOption notify) {
return true;
}
+int CPDF_FormField::CountControls() const {
+ return pdfium::CollectionSize<int>(m_ControlList);
+}
+
int CPDF_FormField::GetControlIndex(const CPDF_FormControl* pControl) const {
if (!pControl)
return -1;
diff --git a/core/fpdfdoc/cpdf_formfield.h b/core/fpdfdoc/cpdf_formfield.h
index a718cec29c..ce12169a71 100644
--- a/core/fpdfdoc/cpdf_formfield.h
+++ b/core/fpdfdoc/cpdf_formfield.h
@@ -15,7 +15,6 @@
#include "core/fxcrt/fx_string.h"
#include "core/fxcrt/fx_system.h"
#include "core/fxcrt/unowned_ptr.h"
-#include "third_party/base/stl_util.h"
class CPDF_Dictionary;
class CPDF_Font;
@@ -110,9 +109,7 @@ class CPDF_FormField {
bool ResetField(NotificationOption notify);
- int CountControls() const {
- return pdfium::CollectionSize<int>(m_ControlList);
- }
+ int CountControls() const;
CPDF_FormControl* GetControl(int index) const {
return m_ControlList[index].Get();