diff options
author | dsinclair <dsinclair@chromium.org> | 2016-07-11 06:46:59 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-07-11 06:47:00 -0700 |
commit | d1cf239fa6be42baa02028efd1617d5af27d82e1 (patch) | |
tree | b365ce948adbea9f655623db4e2ca7797ee5d14f /xfa/fxfa/app/xfa_ffpageview.cpp | |
parent | 3ecdbffbf3b812fe262ca1b8a6eec6187195ddd9 (diff) | |
download | pdfium-d1cf239fa6be42baa02028efd1617d5af27d82e1.tar.xz |
Cleanup redundant method names.
This CL cleans up a bunch of method names which are redundant with the class
names or code location.
Review-Url: https://codereview.chromium.org/2132513003
Diffstat (limited to 'xfa/fxfa/app/xfa_ffpageview.cpp')
-rw-r--r-- | xfa/fxfa/app/xfa_ffpageview.cpp | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/xfa/fxfa/app/xfa_ffpageview.cpp b/xfa/fxfa/app/xfa_ffpageview.cpp index 54c262faac..c1417c72a4 100644 --- a/xfa/fxfa/app/xfa_ffpageview.cpp +++ b/xfa/fxfa/app/xfa_ffpageview.cpp @@ -91,6 +91,24 @@ bool PageWidgetFilter(CXFA_FFWidget* pWidget, return (dwFilter & dwStatus) == dwFilter; } +bool IsLayoutElement(XFA_Element eElement, bool bLayoutContainer) { + switch (eElement) { + case XFA_Element::Draw: + case XFA_Element::Field: + case XFA_Element::InstanceManager: + return !bLayoutContainer; + case XFA_Element::Area: + case XFA_Element::Subform: + case XFA_Element::ExclGroup: + case XFA_Element::SubformSet: + case XFA_Element::PageArea: + case XFA_Element::Form: + return true; + default: + return false; + } +} + } // namespace CXFA_FFPageView::CXFA_FFPageView(CXFA_FFDocView* pDocView, CXFA_Node* pPageArea) @@ -373,8 +391,7 @@ void CXFA_FFTabOrderPageWidgetIterator::OrderContainer( CXFA_TabParam* pParam = new CXFA_TabParam; pParam->m_pWidget = hWidget; tabParams.Add(pParam); - if (XFA_IsLayoutElement(pSearchItem->GetFormNode()->GetElementType(), - TRUE)) { + if (IsLayoutElement(pSearchItem->GetFormNode()->GetElementType(), true)) { OrderContainer(sIterator, pSearchItem, pParam, bCurrentItem, bContentArea, bMarsterPage); } |