diff options
author | dsinclair <dsinclair@chromium.org> | 2016-05-17 10:32:18 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-05-17 10:32:19 -0700 |
commit | 935d8d5dcbf1da2b3198675428cbf7ca0406788f (patch) | |
tree | 9fc8595b3b169a1b7a5f9e9ead95f41be879fc67 /fpdfsdk/fpdfformfill.cpp | |
parent | 59ce240d509a3079dab64f891a5363b11d4de3c7 (diff) | |
download | pdfium-935d8d5dcbf1da2b3198675428cbf7ca0406788f.tar.xz |
XFA_WIDGETSTATUS cleanup.
This CL moves all of the XFA_WIDGETSTATUS values into a single enum instead
of multiple defines. The values are also normalized.
The name was updated to be XFA_WidgetStatus.
The XFA_WIDGETFILTER and XFA_LAYOUTSTATUS defines had to
match up to XFA_WIDGETSTATUS. This Cl replaces those so
we just have a single enum to work with.
Review-Url: https://codereview.chromium.org/1986503002
Diffstat (limited to 'fpdfsdk/fpdfformfill.cpp')
-rw-r--r-- | fpdfsdk/fpdfformfill.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/fpdfsdk/fpdfformfill.cpp b/fpdfsdk/fpdfformfill.cpp index 94a8bf12a5..f949da1019 100644 --- a/fpdfsdk/fpdfformfill.cpp +++ b/fpdfsdk/fpdfformfill.cpp @@ -92,9 +92,8 @@ DLLEXPORT int STDCALL FPDFPage_HasFormFieldAtPoint(FPDF_FORMHANDLE hHandle, return -1; std::unique_ptr<IXFA_WidgetIterator> pWidgetIterator( - pPageView->CreateWidgetIterator( - XFA_TRAVERSEWAY_Form, - XFA_WIDGETFILTER_Viewable | XFA_WIDGETFILTER_AllType)); + pPageView->CreateWidgetIterator(XFA_TRAVERSEWAY_Form, + XFA_WidgetStatus_Viewable)); if (!pWidgetIterator) return -1; |