From aa5769a417251214d1a8b3ebb5153a9251f50448 Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Thu, 16 Aug 2018 21:22:42 +0000 Subject: Replace optional bool bDrawFocus with enum type. Change-Id: Ide4a972337afaf346e46edc4ede48140cd4544c1 Reviewed-on: https://pdfium-review.googlesource.com/40390 Commit-Queue: Tom Sepez Reviewed-by: Lei Zhang --- xfa/fxfa/cxfa_fffield.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'xfa/fxfa/cxfa_fffield.cpp') diff --git a/xfa/fxfa/cxfa_fffield.cpp b/xfa/fxfa/cxfa_fffield.cpp index 8dd0a9ec4c..7fba69973c 100644 --- a/xfa/fxfa/cxfa_fffield.cpp +++ b/xfa/fxfa/cxfa_fffield.cpp @@ -43,9 +43,9 @@ CXFA_FFField::CXFA_FFField(CXFA_Node* pNode) : CXFA_FFWidget(pNode) {} CXFA_FFField::~CXFA_FFField() = default; -CFX_RectF CXFA_FFField::GetBBox(uint32_t dwStatus, bool bDrawFocus) { - if (!bDrawFocus) - return CXFA_FFWidget::GetBBox(dwStatus); +CFX_RectF CXFA_FFField::GetBBox(uint32_t dwStatus, FocusOption focus) { + if (focus == kDoNotDrawFocus) + return CXFA_FFWidget::GetBBox(dwStatus, kDoNotDrawFocus); switch (m_pNode->GetFFWidgetType()) { case XFA_FFWidgetType::kButton: -- cgit v1.2.3