diff options
author | Lei Zhang <thestig@chromium.org> | 2018-10-12 19:07:03 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-10-12 19:07:03 +0000 |
commit | 35d4587eceb07cad6b38675b0ebb4b73eca3a62b (patch) | |
tree | 19c84b514dad085d75c76977f1ee9da123748441 /core/fpdfdoc/cpdf_formfield.cpp | |
parent | 8460088891f98a9138718fc9c89bf309eb88580f (diff) | |
download | pdfium-35d4587eceb07cad6b38675b0ebb4b73eca3a62b.tar.xz |
Remove more unnecessary includes and do IWYU as needed.
Also move some implementations out of headers.
Change-Id: I321fc26970c440d874b135bd28e8bc8156b9afee
Reviewed-on: https://pdfium-review.googlesource.com/c/43890
Commit-Queue: Lei Zhang <thestig@chromium.org>
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'core/fpdfdoc/cpdf_formfield.cpp')
-rw-r--r-- | core/fpdfdoc/cpdf_formfield.cpp | 4 |
1 files changed, 4 insertions, 0 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; |