diff options
author | Tom Sepez <tsepez@chromium.org> | 2018-08-16 21:22:42 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-08-16 21:22:42 +0000 |
commit | aa5769a417251214d1a8b3ebb5153a9251f50448 (patch) | |
tree | 683409eb8a036de68e0934ef540ee7baf2e41620 /xfa/fxfa/cxfa_ffwidget.cpp | |
parent | df4e68c5eb293c9929c7d66e59d08afc21b04c86 (diff) | |
download | pdfium-aa5769a417251214d1a8b3ebb5153a9251f50448.tar.xz |
Replace optional bool bDrawFocus with enum type.
Change-Id: Ide4a972337afaf346e46edc4ede48140cd4544c1
Reviewed-on: https://pdfium-review.googlesource.com/40390
Commit-Queue: Tom Sepez <tsepez@chromium.org>
Reviewed-by: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'xfa/fxfa/cxfa_ffwidget.cpp')
-rw-r--r-- | xfa/fxfa/cxfa_ffwidget.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xfa/fxfa/cxfa_ffwidget.cpp b/xfa/fxfa/cxfa_ffwidget.cpp index 05330a9a51..f425ccf625 100644 --- a/xfa/fxfa/cxfa_ffwidget.cpp +++ b/xfa/fxfa/cxfa_ffwidget.cpp @@ -285,8 +285,8 @@ void CXFA_FFWidget::ModifyStatus(uint32_t dwAdded, uint32_t dwRemoved) { m_dwStatus = (m_dwStatus & ~dwRemoved) | dwAdded; } -CFX_RectF CXFA_FFWidget::GetBBox(uint32_t dwStatus, bool bDrawFocus) { - if (bDrawFocus || !m_pPageView) +CFX_RectF CXFA_FFWidget::GetBBox(uint32_t dwStatus, FocusOption focus) { + if (focus == kDrawFocus || !m_pPageView) return CFX_RectF(); return m_pPageView->GetPageViewRect(); } @@ -347,7 +347,7 @@ void CXFA_FFWidget::DrawBorderWithFlag(CXFA_Graphics* pGS, } void CXFA_FFWidget::InvalidateRect() { - CFX_RectF rtWidget = GetBBox(XFA_WidgetStatus_Focused); + CFX_RectF rtWidget = GetBBox(XFA_WidgetStatus_Focused, kDoNotDrawFocus); rtWidget.Inflate(2, 2); m_pDocView->InvalidateRect(m_pPageView.Get(), rtWidget); } |